Jump to content

What is "HOT" Code?

rlum's Photo
Posted Jun 16 2010 09:37 PM
4183 Views

Have you ever read programming code and thought it was "hot?" What was it and what made it standout?

1 Reply

+ 3
  sboss's Photo
Posted Jun 19 2010 02:01 PM

Not sure if this is what you are looking for..

Many many years (mid-90s) ago I was working at a University and I was writing a web based app that allowed students to sign up for an account on the student server. I was having issues working on code that would come up with a unique uid for student on the unix server without going through and searching through the thousands of accounts (each time) to find the first available uid. Randal (of Perl fame) send me a 1 liner that was ultra simple but powerful that did the work without all the heavy lifting I was going to have to go through. His line of code put no load nor took any time to run. The same code ran for over 10 years without being touched.

That was "hot" and "amazing".