Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Interesting variable names

Interesting variable names

Scheduled Pinned Locked Moved The Lounge
performancecareer
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Parsley72
    wrote on last edited by
    #1

    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.

    B 1 Reply Last reply
    0
    • P Parsley72

      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.

      B Offline
      B Offline
      Brady Kelly
      wrote on last edited by
      #2

      Did John Smith run for a long period?

      P 1 Reply Last reply
      0
      • B Brady Kelly

        Did John Smith run for a long period?

        P Offline
        P Offline
        Parsley72
        wrote on last edited by
        #3

        He helped build the company up over 26 years, so you could say that.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups