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. Other Discussions
  3. The Weird and The Wonderful
  4. Interesting Variable Names

Interesting Variable Names

Scheduled Pinned Locked Moved The Weird and The Wonderful
16 Posts 14 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.
  • L Offline
    L Offline
    Lee Humphries
    wrote on last edited by
    #1

    A former place of employment wrote a LOT of engineering software (Fortran naturally). This was at a time when we were just able to get our hands on a 640kb PC, the software, even with the best compilers and linkers available still sat at over 800kb. One of the programmers was prone to naming variables using expletives, which made debugging fairly tedious, there's only so many sh#ts and fu$ks you can put up with before it becomes tiring. However what brought the most amusement was a variable for "Volt Drop Analysis" - it was abbreviated to "VDAnal". Nobody could keep a straight face while debugging that section of code, because it was just so unintentional.

    R J J K R 8 Replies Last reply
    0
    • L Lee Humphries

      A former place of employment wrote a LOT of engineering software (Fortran naturally). This was at a time when we were just able to get our hands on a 640kb PC, the software, even with the best compilers and linkers available still sat at over 800kb. One of the programmers was prone to naming variables using expletives, which made debugging fairly tedious, there's only so many sh#ts and fu$ks you can put up with before it becomes tiring. However what brought the most amusement was a variable for "Volt Drop Analysis" - it was abbreviated to "VDAnal". Nobody could keep a straight face while debugging that section of code, because it was just so unintentional.

      R Offline
      R Offline
      R Giskard Reventlov
      wrote on last edited by
      #2

      Reminds me of a time, many years ago, when I worked for someone who thought it was fun to prefix every variable with his initials. He just didn't get why it was wrong.

      bin the spin home

      R V D 3 Replies Last reply
      0
      • L Lee Humphries

        A former place of employment wrote a LOT of engineering software (Fortran naturally). This was at a time when we were just able to get our hands on a 640kb PC, the software, even with the best compilers and linkers available still sat at over 800kb. One of the programmers was prone to naming variables using expletives, which made debugging fairly tedious, there's only so many sh#ts and fu$ks you can put up with before it becomes tiring. However what brought the most amusement was a variable for "Volt Drop Analysis" - it was abbreviated to "VDAnal". Nobody could keep a straight face while debugging that section of code, because it was just so unintentional.

        J Offline
        J Offline
        Justin Perez
        wrote on last edited by
        #3

        Lee Humphries wrote:

        One of the programmers was prone to naming variables using expletives, which made debugging fairly tedious, there's only so many sh#ts and fu$ks you can put up with before it becomes tiring. However what brought the most amusement was a variable for "Volt Drop Analysis" - it was abbreviated to "VDAnal". Nobody could keep a straight face while debugging that section of code, because it was just so unintentional.

        I can't believe that anyone would do that. We are supposed to be professionals. If I was his supervisor, he would be fired the first time I saw that. Very unprofessional, immature, and like you said, very difficult to debug.

        I'm going to become rich when I create a device that allows me to punch people in the face over the internet. "If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer

        D 1 Reply Last reply
        0
        • L Lee Humphries

          A former place of employment wrote a LOT of engineering software (Fortran naturally). This was at a time when we were just able to get our hands on a 640kb PC, the software, even with the best compilers and linkers available still sat at over 800kb. One of the programmers was prone to naming variables using expletives, which made debugging fairly tedious, there's only so many sh#ts and fu$ks you can put up with before it becomes tiring. However what brought the most amusement was a variable for "Volt Drop Analysis" - it was abbreviated to "VDAnal". Nobody could keep a straight face while debugging that section of code, because it was just so unintentional.

          J Offline
          J Offline
          jhwurmbach
          wrote on last edited by
          #4

          A colleague of mine keeps talking about an intern they had, and who simply had not understood the concept of variable names. When he was told that "A", "B" and "C" where not to be used, he felt forced to resort to somewhat totally arbitrary: He started to use animal names: "lion", "rhino" and "giraffe" and so on. :laugh: His variable named "giraffe" was left in the code as to commemorate this guy.

          Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
          Douglas Adams, "Dirk Gently's Holistic Detective Agency"

          V 1 Reply Last reply
          0
          • R R Giskard Reventlov

            Reminds me of a time, many years ago, when I worked for someone who thought it was fun to prefix every variable with his initials. He just didn't get why it was wrong.

            bin the spin home

            R Offline
            R Offline
            RichardGrimmer
            wrote on last edited by
            #5

            I used to use the hungarian rg (for range) notation for an array - as in rgKeys - one of our Seniors at an old job consistently told people it was cos of my initials, and copiously took the proverbial...he felt silly when I explained :)

            C# has already designed away most of the tedium of C++.

            1 Reply Last reply
            0
            • L Lee Humphries

              A former place of employment wrote a LOT of engineering software (Fortran naturally). This was at a time when we were just able to get our hands on a 640kb PC, the software, even with the best compilers and linkers available still sat at over 800kb. One of the programmers was prone to naming variables using expletives, which made debugging fairly tedious, there's only so many sh#ts and fu$ks you can put up with before it becomes tiring. However what brought the most amusement was a variable for "Volt Drop Analysis" - it was abbreviated to "VDAnal". Nobody could keep a straight face while debugging that section of code, because it was just so unintentional.

              K Offline
              K Offline
              Kyudos
              wrote on last edited by
              #6

              Well, thats a step up from most Fortran code you see, which usually uses single letter variables - two letters if you're lucky. :o/

              1 Reply Last reply
              0
              • R R Giskard Reventlov

                Reminds me of a time, many years ago, when I worked for someone who thought it was fun to prefix every variable with his initials. He just didn't get why it was wrong.

                bin the spin home

                V Offline
                V Offline
                Vasudevan Deepak Kumar
                wrote on last edited by
                #7

                digital man wrote:

                He just didn't get why it was wrong.

                It is rather to tough to make them understand that their stand is wrong and to correct them. It is a proven saying that it is hard to straighten a dog's tail as also that in the particular case it would like singing near the ear of a total deaf man. :)

                Vasudevan Deepak Kumar Personal Homepage
                Tech Gossips
                A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

                1 Reply Last reply
                0
                • J jhwurmbach

                  A colleague of mine keeps talking about an intern they had, and who simply had not understood the concept of variable names. When he was told that "A", "B" and "C" where not to be used, he felt forced to resort to somewhat totally arbitrary: He started to use animal names: "lion", "rhino" and "giraffe" and so on. :laugh: His variable named "giraffe" was left in the code as to commemorate this guy.

                  Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
                  Douglas Adams, "Dirk Gently's Holistic Detective Agency"

                  V Offline
                  V Offline
                  Vasudevan Deepak Kumar
                  wrote on last edited by
                  #8

                  jhwurmbach wrote:

                  His variable named "giraffe" was left in the code as to commemorate this guy.

                  And if there was a variable named 'dinosaur', that module can be declared obsolete too. Sometime back we had an interesting discussion on Dinosaur and VB in Soapbox. Perhaps if you are interested, check out this permalink: http://www.codeproject.com/script/Forums/View.aspx?fid=2605&msg=2377913[^]

                  Vasudevan Deepak Kumar Personal Homepage
                  Tech Gossips
                  A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

                  1 Reply Last reply
                  0
                  • L Lee Humphries

                    A former place of employment wrote a LOT of engineering software (Fortran naturally). This was at a time when we were just able to get our hands on a 640kb PC, the software, even with the best compilers and linkers available still sat at over 800kb. One of the programmers was prone to naming variables using expletives, which made debugging fairly tedious, there's only so many sh#ts and fu$ks you can put up with before it becomes tiring. However what brought the most amusement was a variable for "Volt Drop Analysis" - it was abbreviated to "VDAnal". Nobody could keep a straight face while debugging that section of code, because it was just so unintentional.

                    R Offline
                    R Offline
                    Russell Jones
                    wrote on last edited by
                    #9

                    We've got a ReleaseAnalWnd function kicking about in our codebase. I've no idea if it was originally intentional or not as it's been sitting about since the dawn of the windows version of the software.

                    R D 2 Replies Last reply
                    0
                    • R Russell Jones

                      We've got a ReleaseAnalWnd function kicking about in our codebase. I've no idea if it was originally intentional or not as it's been sitting about since the dawn of the windows version of the software.

                      R Offline
                      R Offline
                      RugbyLeague
                      wrote on last edited by
                      #10

                      :laugh:

                      1 Reply Last reply
                      0
                      • R Russell Jones

                        We've got a ReleaseAnalWnd function kicking about in our codebase. I've no idea if it was originally intentional or not as it's been sitting about since the dawn of the windows version of the software.

                        D Offline
                        D Offline
                        dighn
                        wrote on last edited by
                        #11

                        Analysis should not be abbreviated :| too easy to end up as part of suggestive combinations.

                        1 Reply Last reply
                        0
                        • L Lee Humphries

                          A former place of employment wrote a LOT of engineering software (Fortran naturally). This was at a time when we were just able to get our hands on a 640kb PC, the software, even with the best compilers and linkers available still sat at over 800kb. One of the programmers was prone to naming variables using expletives, which made debugging fairly tedious, there's only so many sh#ts and fu$ks you can put up with before it becomes tiring. However what brought the most amusement was a variable for "Volt Drop Analysis" - it was abbreviated to "VDAnal". Nobody could keep a straight face while debugging that section of code, because it was just so unintentional.

                          V Offline
                          V Offline
                          V 0
                          wrote on last edited by
                          #12

                          an (ex-)colleague of mine (a highly paid consultant ;p) had to take over some of my code and found nothing better than to select a global variable and do a replace ALL with "this." as prefix... After that the entire text kinda had a blue-ish shine to it... ;) He took the code for 1 or 2 weeks and I spent 3 days in cleaning it up... a little.

                          V.
                          Stop smoking so you can: Enjoy longer the money you save. Moviereview Archive

                          1 Reply Last reply
                          0
                          • L Lee Humphries

                            A former place of employment wrote a LOT of engineering software (Fortran naturally). This was at a time when we were just able to get our hands on a 640kb PC, the software, even with the best compilers and linkers available still sat at over 800kb. One of the programmers was prone to naming variables using expletives, which made debugging fairly tedious, there's only so many sh#ts and fu$ks you can put up with before it becomes tiring. However what brought the most amusement was a variable for "Volt Drop Analysis" - it was abbreviated to "VDAnal". Nobody could keep a straight face while debugging that section of code, because it was just so unintentional.

                            J Offline
                            J Offline
                            Joe Simes
                            wrote on last edited by
                            #13

                            we had a young whipper snapper MIT graduate on a project years ago (mid 90's) who used to use the stupidest variable names ever. His favorite was "smack" if smack { } else { } And he reused the same variable names in all the different modules. So you never really knew which smack you were look at. The worst was when he instantiated a object and he named it after the client. The only issue was that the module was licensed to that particular client and when we used it on the next project it was the first clients direct competition. These "clients" were book publishers so they owned everything and when they were reading through the source code and came across their biggest competitors name they sorta blew a gasket, so to speak!! :-D

                            1 Reply Last reply
                            0
                            • L Lee Humphries

                              A former place of employment wrote a LOT of engineering software (Fortran naturally). This was at a time when we were just able to get our hands on a 640kb PC, the software, even with the best compilers and linkers available still sat at over 800kb. One of the programmers was prone to naming variables using expletives, which made debugging fairly tedious, there's only so many sh#ts and fu$ks you can put up with before it becomes tiring. However what brought the most amusement was a variable for "Volt Drop Analysis" - it was abbreviated to "VDAnal". Nobody could keep a straight face while debugging that section of code, because it was just so unintentional.

                              D Offline
                              D Offline
                              Dave Cross
                              wrote on last edited by
                              #14

                              When I was a lad, working in a COBOL shop, there was a test program which used the names of all the punch room girls as variables. I can't recall what it did but it had memorable lines like: MOVE MARY TO BED and PERFORM SEX UNTIL SATISFIED. :-O

                              Dave Cross

                              1 Reply Last reply
                              0
                              • R R Giskard Reventlov

                                Reminds me of a time, many years ago, when I worked for someone who thought it was fun to prefix every variable with his initials. He just didn't get why it was wrong.

                                bin the spin home

                                D Offline
                                D Offline
                                Derek Bartram
                                wrote on last edited by
                                #15

                                digital man wrote:

                                He just didn't get why it was wrong.

                                Out of curiosity why is that wrong? a) All the user defined variables are together in the auto complete box (intellitype)? b) As long as the rest of the name reflects it's use, what does it matter? c) In a team based environment it keeps a (admitidly fairly rudamentary) track of who coded what

                                1 Reply Last reply
                                0
                                • J Justin Perez

                                  Lee Humphries wrote:

                                  One of the programmers was prone to naming variables using expletives, which made debugging fairly tedious, there's only so many sh#ts and fu$ks you can put up with before it becomes tiring. However what brought the most amusement was a variable for "Volt Drop Analysis" - it was abbreviated to "VDAnal". Nobody could keep a straight face while debugging that section of code, because it was just so unintentional.

                                  I can't believe that anyone would do that. We are supposed to be professionals. If I was his supervisor, he would be fired the first time I saw that. Very unprofessional, immature, and like you said, very difficult to debug.

                                  I'm going to become rich when I create a device that allows me to punch people in the face over the internet. "If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer

                                  D Offline
                                  D Offline
                                  Derek Bartram
                                  wrote on last edited by
                                  #16

                                  Justin Perez wrote:

                                  Very unprofessional, immature, and like you said, very difficult to debug.

                                  I agree, however...... A bit of fun boosts moral and increases productivity.... Lee still remembers that code whereas I bet he doesn't remember much other code from the same period.

                                  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