Interesting variable names
-
The thread about interesting comments in code reminded me of a variable name I came across in my first job. We made Character Generators - boxes that put the text on TV screens for titles, sports scores, song names, etc (now fairly obsolete). Buried in the code was a 32-bit integer that was used to assign an ID to every graphic stored in memory - every time a new graphic was loaded it was incremented. The system wasn't intended to run for long periods so the variable never rolled over. Some anonymous predecessor of mine had called it "John_Smiths_Salary" - John Smith being the CEO of the company. PS. Name changed so I can't get sued.
-
The thread about interesting comments in code reminded me of a variable name I came across in my first job. We made Character Generators - boxes that put the text on TV screens for titles, sports scores, song names, etc (now fairly obsolete). Buried in the code was a 32-bit integer that was used to assign an ID to every graphic stored in memory - every time a new graphic was loaded it was incremented. The system wasn't intended to run for long periods so the variable never rolled over. Some anonymous predecessor of mine had called it "John_Smiths_Salary" - John Smith being the CEO of the company. PS. Name changed so I can't get sued.
Did John Smith run for a long period?
-
Did John Smith run for a long period?