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. Best accidental identifiers

Best accidental identifiers

Scheduled Pinned Locked Moved The Lounge
question
20 Posts 16 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.
  • J Jim Bennett

    So I'm coding along, and often I type in Coors instead of Colors by mistake. Also, how many times have you accidentaly created a new word unseen by man before and gone ahead and used it as a class name or identifier? :laugh: Jim

    G Offline
    G Offline
    Graham Shanks
    wrote on last edited by
    #8

    I invarably set my booleans to flase instead of false. BTW does the frequency of typing Coors increase towards the end of the day or the end of the week? If so then you might have a problem :beer: :) Graham "We've got to downsize our sloppiness overload" Gus Hedges on Drop the Dead Donkey

    1 Reply Last reply
    0
    • L Lost User

      I've mis-typed "count" many times in the past... :doh:

      S Offline
      S Offline
      Simon Capewell
      wrote on last edited by
      #9

      I mistyped a new colleague's name once when I was showing him his new login. Wakeman was what I should have typed, but somehow an extra n crept in :-O -- modified at 11:35 Friday 3rd February, 2006

      1 Reply Last reply
      0
      • J Jim Bennett

        So I'm coding along, and often I type in Coors instead of Colors by mistake. Also, how many times have you accidentaly created a new word unseen by man before and gone ahead and used it as a class name or identifier? :laugh: Jim

        P Offline
        P Offline
        peterchen
        wrote on last edited by
        #10

        for(int i=0; i<rows; ++i)   for(int j=0; j<cols; ++i)   {     ...   }


        Some of us walk the memory lane, others plummet into a rabbit hole
        Tree in C# || Fold With Us! || sighist -- modified at 11:41 Friday 3rd February, 2006

        J 1 Reply Last reply
        0
        • J Jim Bennett

          So I'm coding along, and often I type in Coors instead of Colors by mistake. Also, how many times have you accidentaly created a new word unseen by man before and gone ahead and used it as a class name or identifier? :laugh: Jim

          J Offline
          J Offline
          Judah Gabriel Himango
          wrote on last edited by
          #11

          I always rename misspelled variables. Call me anal. :) That said, the built-in refactoring in VS2005 makes renaming anything much, much easier and far less error prone. :cool:

          Tech, life, family, faith: Give me a visit. I'm currently blogging about: Connor's Christmas Spectacular! Judah Himango

          1 Reply Last reply
          0
          • P peterchen

            for(int i=0; i<rows; ++i)   for(int j=0; j<cols; ++i)   {     ...   }


            Some of us walk the memory lane, others plummet into a rabbit hole
            Tree in C# || Fold With Us! || sighist -- modified at 11:41 Friday 3rd February, 2006

            J Offline
            J Offline
            Judah Gabriel Himango
            wrote on last edited by
            #12

            :doh: done that many times too. If I'm doing embedded for loops, I find it less error prone to use more descriptive indexer variable names. for(int rowNumber = 0; rowNumber < rows; rowNumber++)

            Tech, life, family, faith: Give me a visit. I'm currently blogging about: Connor's Christmas Spectacular! Judah Himango

            1 Reply Last reply
            0
            • J Jim Bennett

              So I'm coding along, and often I type in Coors instead of Colors by mistake. Also, how many times have you accidentaly created a new word unseen by man before and gone ahead and used it as a class name or identifier? :laugh: Jim

              D Offline
              D Offline
              Duncan Edwards Jones
              wrote on last edited by
              #13

              There is an apocryphal tale of the variable name Live_RSA_Usage that lost it's underscored and became LiverSausage I don't believe it myself....programmers never make smelling pistakes '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

              1 Reply Last reply
              0
              • L Lost User

                I've mis-typed "count" many times in the past... :doh:

                K Offline
                K Offline
                Kant
                wrote on last edited by
                #14

                Robert Edward Caldecott wrote:

                I've mis-typed "count" many times in the past...

                I saw that one once in our code (with no o in count), written by Chinese guy. When I asked him do you know the meaning of it, he said no. When I explained him he almost fell of his chair. :laugh:

                This signature was created by "Code Project Quoter".

                1 Reply Last reply
                0
                • J Jim Bennett

                  So I'm coding along, and often I type in Coors instead of Colors by mistake. Also, how many times have you accidentaly created a new word unseen by man before and gone ahead and used it as a class name or identifier? :laugh: Jim

                  K Offline
                  K Offline
                  Kant
                  wrote on last edited by
                  #15

                  Jim Bennett wrote:

                  So I'm coding along, and often I type in Coors instead of Colors by mistake.

                  I remember once I was searching in our code (C#) for a variable named 'l' :doh: (lower case l ) It took me awful time to find that variable where it's been used. First I thought it's 1 (number). string l = ""; The reason was that guy was so lazy (and drunk). :mad:

                  This signature was created by "Code Project Quoter".

                  N 1 Reply Last reply
                  0
                  • K Kant

                    Jim Bennett wrote:

                    So I'm coding along, and often I type in Coors instead of Colors by mistake.

                    I remember once I was searching in our code (C#) for a variable named 'l' :doh: (lower case l ) It took me awful time to find that variable where it's been used. First I thought it's 1 (number). string l = ""; The reason was that guy was so lazy (and drunk). :mad:

                    This signature was created by "Code Project Quoter".

                    N Offline
                    N Offline
                    Nish Nishant
                    wrote on last edited by
                    #16

                    Kant wrote:

                    The reason was that guy was so lazy (and drunk).

                    Drunk? :omg: Regards, Nish

                    My blog : Nish’s thoughts on MFC, C++/CLI and .NET

                    K 1 Reply Last reply
                    0
                    • R realJSOP

                      A programmer that worked on some code I later had occasion to maintain had spelled "delimiter" incorrectly as "delimeter". Instead of fixing the error, I commented the code like this: "Delimeter: noun, usually refers to the standard length of a submarine sandwhich, typically 11.78 inches." ------- sig starts "I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                      N Offline
                      N Offline
                      Neil Van Eps
                      wrote on last edited by
                      #17

                      That particular misspelling is scattered throughout the code base of one of our projects too, it drives me nuts every time I see it. :mad: Neil Van Eps "Staging servers are for compulsive bed-wetting types." - Chris Maunder

                      1 Reply Last reply
                      0
                      • N Nish Nishant

                        Kant wrote:

                        The reason was that guy was so lazy (and drunk).

                        Drunk? :omg: Regards, Nish

                        My blog : Nish’s thoughts on MFC, C++/CLI and .NET

                        K Offline
                        K Offline
                        Kant
                        wrote on last edited by
                        #18

                        Nishant Sivakumar wrote:

                        Drunk?

                        Here on Friday afternoons, you can drink :beer: ;) In my previous gig at Austin, the company used to fill the refrigerator with :beer: on Fridays. So free :beer: Too bad I don't drink. :sigh:

                        This signature was created by "Code Project Quoter".

                        J 1 Reply Last reply
                        0
                        • K Kant

                          Nishant Sivakumar wrote:

                          Drunk?

                          Here on Friday afternoons, you can drink :beer: ;) In my previous gig at Austin, the company used to fill the refrigerator with :beer: on Fridays. So free :beer: Too bad I don't drink. :sigh:

                          This signature was created by "Code Project Quoter".

                          J Offline
                          J Offline
                          Jim Bennett
                          wrote on last edited by
                          #19

                          Cheaper than a company outing to a bar...Smart thinking on their part. Just no product releases after 4 pm on Friday:) Jim

                          1 Reply Last reply
                          0
                          • R realJSOP

                            A programmer that worked on some code I later had occasion to maintain had spelled "delimiter" incorrectly as "delimeter". Instead of fixing the error, I commented the code like this: "Delimeter: noun, usually refers to the standard length of a submarine sandwhich, typically 11.78 inches." ------- sig starts "I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                            P Offline
                            P Offline
                            Phil J Pearson
                            wrote on last edited by
                            #20

                            If you're going to criticise someone's spelling in that way it would be wise to learn to spell 'sandwich'! ;P Phil

                            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