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. Funny variable names

Funny variable names

Scheduled Pinned Locked Moved The Lounge
question
59 Posts 46 Posters 25 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 Lutoslaw

    wizardzz wrote:

    Does anyone else have any examples or funny stories to add?

    A poor design of a huge JAVA system caused some GUI errors happen only at the first run. As a quick fix I've added a

    bool virgin = true;

    field which was set to false after the initiation initialization...

    Greetings - Jacek

    H Offline
    H Offline
    hoernchenmeister
    wrote on last edited by
    #34

    That calls for a BlastHymen() setter ;)

    1 Reply Last reply
    0
    • W wizardzz

      It just happened to me now. Following a legacy naming convention my class had an object named pipTable, then I added feedTable, and now poolTable. I know it's not really funny, but when I'm coding and see variable names form something meaningful, it makes me :). I know this has happened to me many times before, occasionally causing me to reconsider the convention when the name becomes R or even X rated. Does anyone else have any examples or funny stories to add?

      B Offline
      B Offline
      BillW33
      wrote on last edited by
      #35

      One of my favorite silly variable names, written by a co-worker late at night, he named a boolean variable "JuatABool". :)

      Just because the code works, it doesn't mean that it is good code.

      1 Reply Last reply
      0
      • S SpoonLord

        A project I used to work on had a module called 'cunit'. I was shocked when I first saw it.

        S Offline
        S Offline
        Stefan_Lang
        wrote on last edited by
        #36

        Well in your case it was just a matter of misreading, but in our application, some of the older code that used hungarian style names (i. e. names consisting of one or more abbreviated words) is consistently using the fragment 'anal' to denote something to do with 'analysis'. :doh:

        J 1 Reply Last reply
        0
        • J Jason Christian

          Worked on a system that had 2 character prefixes (depending on the file) followed by 4 char field names (same across files), so there were fun items like xxPORN (Purchase Order Number) all over the place.

          J Offline
          J Offline
          Julian Nicholls
          wrote on last edited by
          #37

          A lot of the active-low Power-on resets in the hardware I'm working on are called PORn too.

          1 Reply Last reply
          0
          • W wizardzz

            It just happened to me now. Following a legacy naming convention my class had an object named pipTable, then I added feedTable, and now poolTable. I know it's not really funny, but when I'm coding and see variable names form something meaningful, it makes me :). I know this has happened to me many times before, occasionally causing me to reconsider the convention when the name becomes R or even X rated. Does anyone else have any examples or funny stories to add?

            B Offline
            B Offline
            BrainiacV
            wrote on last edited by
            #38

            A variable name I'll never forget was for a conveyor system I worked on with a friend. He had this naming convention of 8 characters max, using the normal names you'd like for the variable divided by the number of words gave you the number of characters to take from each word to create the variable name. Ex. PRINT SPOOLER became PRINSPOO and (my favorite) SHIPPING STATION CONTROL LOOP became SHSTCOLO (pronounce sheh sta co low). But another buddy wnt the other direction creating long names. One of his SmallTalk objects was called FireHunterSeekerBlowBackTo. In high school the PALD-8 Assembler for the DEC PDP-8 only allowed 6 character names. So when it came to having a counter, we started with COUNT, removed the vowels for CNT, started adding them back giving CONT and (I'll let you figure out the logical conclusion here).

            Psychosis at 10 Film at 11

            1 Reply Last reply
            0
            • W wizardzz

              It just happened to me now. Following a legacy naming convention my class had an object named pipTable, then I added feedTable, and now poolTable. I know it's not really funny, but when I'm coding and see variable names form something meaningful, it makes me :). I know this has happened to me many times before, occasionally causing me to reconsider the convention when the name becomes R or even X rated. Does anyone else have any examples or funny stories to add?

              S Offline
              S Offline
              Sound Dude
              wrote on last edited by
              #39

              I always use funny names for endless loops that wait for a condition then break. as in: const bool TheAZCardinalsStillSuck = true; while (TheAZCardinalsStillSuck) { ... } although the above example almost broke in 2008 - 2009, that code is secure this year.

              1 Reply Last reply
              0
              • W wizardzz

                It just happened to me now. Following a legacy naming convention my class had an object named pipTable, then I added feedTable, and now poolTable. I know it's not really funny, but when I'm coding and see variable names form something meaningful, it makes me :). I know this has happened to me many times before, occasionally causing me to reconsider the convention when the name becomes R or even X rated. Does anyone else have any examples or funny stories to add?

                S Offline
                S Offline
                Slice24
                wrote on last edited by
                #40

                A colleague of mine used a variable called tibet. Once he was finished with the variable, he was then able to free(tibet)

                J 1 Reply Last reply
                0
                • W wizardzz

                  It just happened to me now. Following a legacy naming convention my class had an object named pipTable, then I added feedTable, and now poolTable. I know it's not really funny, but when I'm coding and see variable names form something meaningful, it makes me :). I know this has happened to me many times before, occasionally causing me to reconsider the convention when the name becomes R or even X rated. Does anyone else have any examples or funny stories to add?

                  A Offline
                  A Offline
                  Alan Burkhart
                  wrote on last edited by
                  #41

                  I downloaded some code a few years ago in which all the buttons in the interface had names like buttGo, buttSort, buttYes, buttNo...

                  Everybody SHUT UP until I finish my coffee...

                  1 Reply Last reply
                  0
                  • S Slice24

                    A colleague of mine used a variable called tibet. Once he was finished with the variable, he was then able to free(tibet)

                    J Offline
                    J Offline
                    Joan Dineiro
                    wrote on last edited by
                    #42

                    I had a collegue who had to write a credit app program. They named the database table CRAP and the columns in the table were all like CRAP_descript, CRAP_Type, etc. The boss made them rename everything. Bosses have no sense of humor

                    JodiYoda

                    1 Reply Last reply
                    0
                    • J jimgale

                      I had a coworker who named variables after Egyptian Gods - based on the code intention's personality (matching the gods). Ra, Hathor, Isis, Anubis. [Personally I think of Stargate with these names]. But she knew their histories well. It's harder to get any more abstract and removed from the real semantic meaning of the variable than that.

                      A Offline
                      A Offline
                      agolddog
                      wrote on last edited by
                      #43

                      Similarly, I once worked for a firm where the servers were all Vegas casinos: MandalayBay, Venetian, etc, and the developer machines were all games: CaribbeanStud, Blackjack, etc. Not such a bad thing in a small shop, but it took a while to get up to remembering who was what.

                      1 Reply Last reply
                      0
                      • W wizardzz

                        It just happened to me now. Following a legacy naming convention my class had an object named pipTable, then I added feedTable, and now poolTable. I know it's not really funny, but when I'm coding and see variable names form something meaningful, it makes me :). I know this has happened to me many times before, occasionally causing me to reconsider the convention when the name becomes R or even X rated. Does anyone else have any examples or funny stories to add?

                        S Offline
                        S Offline
                        Steve Poulter
                        wrote on last edited by
                        #44

                        I once had to deal with some MS-Basic code written by a bored kid who amused himself with variable names including:

                        dim eieio

                        (Think Old MacDonald...)

                        1 Reply Last reply
                        0
                        • S Stefan_Lang

                          Well in your case it was just a matter of misreading, but in our application, some of the older code that used hungarian style names (i. e. names consisting of one or more abbreviated words) is consistently using the fragment 'anal' to denote something to do with 'analysis'. :doh:

                          J Offline
                          J Offline
                          JasonPSage
                          wrote on last edited by
                          #45

                          So..everything in that system .... ahhaha

                          Know way too many languages... master of none!

                          1 Reply Last reply
                          0
                          • W wizardzz

                            It just happened to me now. Following a legacy naming convention my class had an object named pipTable, then I added feedTable, and now poolTable. I know it's not really funny, but when I'm coding and see variable names form something meaningful, it makes me :). I know this has happened to me many times before, occasionally causing me to reconsider the convention when the name becomes R or even X rated. Does anyone else have any examples or funny stories to add?

                            T Offline
                            T Offline
                            Tony Wright UK
                            wrote on last edited by
                            #46

                            My favourite is a variable to hold the current time - SecsNow.

                            1 Reply Last reply
                            0
                            • W wizardzz

                              It just happened to me now. Following a legacy naming convention my class had an object named pipTable, then I added feedTable, and now poolTable. I know it's not really funny, but when I'm coding and see variable names form something meaningful, it makes me :). I know this has happened to me many times before, occasionally causing me to reconsider the convention when the name becomes R or even X rated. Does anyone else have any examples or funny stories to add?

                              R Offline
                              R Offline
                              Richard Hylton
                              wrote on last edited by
                              #47

                              Not sure this is funny. Quite sure that it amused my small mind. I was working on a Purchase Order project and somehow variables ended up being named c3PO and extensions of that name.

                              RHYlton

                              1 Reply Last reply
                              0
                              • W wizardzz

                                It just happened to me now. Following a legacy naming convention my class had an object named pipTable, then I added feedTable, and now poolTable. I know it's not really funny, but when I'm coding and see variable names form something meaningful, it makes me :). I know this has happened to me many times before, occasionally causing me to reconsider the convention when the name becomes R or even X rated. Does anyone else have any examples or funny stories to add?

                                P Offline
                                P Offline
                                programmervb netc
                                wrote on last edited by
                                #48

                                yorn What is that you ask...... Yes or No....dumb We also have a set of classes we call the blue classes because they all start with smrf. Bad thing is the little smurfs keep multiplying. Humble Programmer

                                W 1 Reply Last reply
                                0
                                • P programmervb netc

                                  yorn What is that you ask...... Yes or No....dumb We also have a set of classes we call the blue classes because they all start with smrf. Bad thing is the little smurfs keep multiplying. Humble Programmer

                                  W Offline
                                  W Offline
                                  wizardzz
                                  wrote on last edited by
                                  #49

                                  Much like many engineering departments, there is only one female smurf. She must be quite busy if they are multiplying.

                                  1 Reply Last reply
                                  0
                                  • D Daniel Tak M

                                    When I can't come up with a good name for a class, I sometimes ask a colleague (not a coder) for help... that's why there's a class called "ChiefCommander" in one of my projects (the class administrates many major parts of the app).

                                    B Offline
                                    B Offline
                                    Br Bill
                                    wrote on last edited by
                                    #50

                                    I worked on a build system for a company's huge software project. It had many options, and the variables inside the script files stored parameters for the build. For some reason, the variable names never exceeded 10 characters. For example, PROF_TOOL could contain the name of one of 3 different profiling tools, depending on the software language and version. In addition to PROF_TOOL, there were also: ARCH_TOOL - name of archiver COMP_TOOL - compiler LINK_TOOL - linker and my favorite, the code analysis tool : ANAL_TOOL . Everybody else at the company always spoke it to rhyme with "canal tool", but I took immature joy in always pronouncing it exactly the way it looks. "So which ANAL_TOOL were you using when you encountered the problem?" I'm a jerk.

                                    1 Reply Last reply
                                    0
                                    • W wizardzz

                                      It just happened to me now. Following a legacy naming convention my class had an object named pipTable, then I added feedTable, and now poolTable. I know it's not really funny, but when I'm coding and see variable names form something meaningful, it makes me :). I know this has happened to me many times before, occasionally causing me to reconsider the convention when the name becomes R or even X rated. Does anyone else have any examples or funny stories to add?

                                      G Offline
                                      G Offline
                                      ghle
                                      wrote on last edited by
                                      #51

                                      wizardzz wrote:

                                      have any examples

                                      Financial software, Asset Manager = AssMgr In the old days (64KB was a lot), we had a program overlay on RAM that could reconfigure our machine tool software tables that resided in the RAM. The overlay program was call the Configurator. It was possible to reconfigure the system so that the RAM tables grew so large that they expanded into the Executive program area. We needed a flag for that, so that we could crash the executive program gracefully upon reload, instead of a run-away program. Name of the flag, of course, was FCEM 'Figurator Crashed Executive Memory. Yes, the FCEM flag (hard C, aka K). If it ever was TRUE, well, you were f....d. :-O

                                      Gary

                                      1 Reply Last reply
                                      0
                                      • S ScottM1

                                        But then what would he call his SQLExceptions?

                                        M Offline
                                        M Offline
                                        meaningoflights
                                        wrote on last edited by
                                        #52

                                        sexual exceptions... At previous workplace there was a guy named Ray. A couple of us were looking at this weird stored proc and we kept on saying: "WTF is this Raise Error" "bloody Raise error is the cause of all our problems" He eventually stormed over and YELLS - "WHAT THE FUCK ITS NOT MY ERROR!"

                                        1 Reply Last reply
                                        0
                                        • W wizardzz

                                          It just happened to me now. Following a legacy naming convention my class had an object named pipTable, then I added feedTable, and now poolTable. I know it's not really funny, but when I'm coding and see variable names form something meaningful, it makes me :). I know this has happened to me many times before, occasionally causing me to reconsider the convention when the name becomes R or even X rated. Does anyone else have any examples or funny stories to add?

                                          K Offline
                                          K Offline
                                          kxal
                                          wrote on last edited by
                                          #53

                                          well,I really think naming a varible is difficult,especially in a large project.It always takes me a lot of time to find out a meaningful name,and I often worried about whether I name two varibles the same name.

                                          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