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. What's your longest variable name?

What's your longest variable name?

Scheduled Pinned Locked Moved The Lounge
combusinesstutorialquestiondiscussion
27 Posts 15 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.
  • T Tim Smith

    "Find and Replace" That is SOOOOOO 20th century. REFACTOR!!!! :rolleyes: Tim Smith I'm going to patent thought. I have yet to see any prior art.

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #8

    :-D My article on a reference-counted smart pointer that supports polymorphic objects and raw pointers

    1 Reply Last reply
    0
    • M Michael Dunn

      I think three significant words (that is, not counting words like "with" or "per") is a good limit. I've used names like nMaxRequestsPerPacket with no guilt. :) --Mike-- Friday's GoogleFight results: Britney Spears 2,190,000 - Erica Weichers 23 :( 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm

      T Offline
      T Offline
      Thomas Freudenberg
      wrote on last edited by
      #9

      Michael Dunn wrote: I think three significant words (that is, not counting words like "with" or "per") is a good limit. Yeah, that's a good rule of thumb. Although I've never thought about it, I'm naming my variables exactly this way. Regards Thomas Sonork id: 100.10453 Thömmi


      Disclaimer:
      Because of heavy processing requirements, we are currently using some of your unused brain capacity for backup processing. Please ignore any hallucinations, voices or unusual dreams you may experience. Please avoid concentration-intensive tasks until further notice. Thank you.

      K 1 Reply Last reply
      0
      • T Thomas Freudenberg

        Michael Dunn wrote: I think three significant words (that is, not counting words like "with" or "per") is a good limit. Yeah, that's a good rule of thumb. Although I've never thought about it, I'm naming my variables exactly this way. Regards Thomas Sonork id: 100.10453 Thömmi


        Disclaimer:
        Because of heavy processing requirements, we are currently using some of your unused brain capacity for backup processing. Please ignore any hallucinations, voices or unusual dreams you may experience. Please avoid concentration-intensive tasks until further notice. Thank you.

        K Offline
        K Offline
        KaRl
        wrote on last edited by
        #10

        Thomas Freudenberg wrote: Although I've never thought about it, I'm naming my variables exactly this way. Yep, me too. I thing explicit names clarify the reading of the code, for me and for the next ones. I hate reading variables as a1, r3, r_h4, or toto2


        I hurt so bad inside I wish you could see the world through my eyes It stays the same I just wanna laugh again

        1 Reply Last reply
        0
        • T Tim Smith

          "Find and Replace" That is SOOOOOO 20th century. REFACTOR!!!! :rolleyes: Tim Smith I'm going to patent thought. I have yet to see any prior art.

          M Offline
          M Offline
          Megan Forbes
          wrote on last edited by
          #11

          Tim Smith wrote: That is SOOOOOO 20th century. Lol - that's so wierd! I heard some stupid woman saying that in all seriousness in the bathroom of Harrods while Christmas shopping for our family in SA today! Never thought I would hear such a thing till at least 2010 again! BTW - who would have guessed they would charge you £1 to go to the bathroom there! I mean, with 6 floors, who isn't going to need to go? :eek:


          I knew it would end badly when I first met Chris in a Canberra alleyway and he said 'try some - it won't hurt you'..... - Christian Graus on Code Project outages Damned nice for remote servers where using Enterprise Manager is like wadding through treacle while covered in velcro, upside down -Paul Watson on SQL Server Query Analyser

          N R 2 Replies Last reply
          0
          • T Thomas Freudenberg

            Last week we had the discussion about the stupidest variable names[^]. Today I was reading the WholeTomato forum and stumbled over this message[^]. This guy is complaining, that VisualAssist does not recognize variables with names longer than 100 characters. The VisualAssist guy asked him for an example, that they know the actual required length. The guy answered:

            szRegistryAnalysisCategoryItemTextReportColumnRelativeQuantityToCalibratorAverageMinus1StandardDeviation

            :omg: 105 characters! I think this variable may be on top 1 of the stupidest variable names. :wtf: So, what's your longest variable names? Are you able to overtrump that guy? Regards Thomas Sonork id: 100.10453 Thömmi


            Disclaimer:
            Because of heavy processing requirements, we are currently using some of your unused brain capacity for backup processing. Please ignore any hallucinations, voices or unusual dreams you may experience. Please avoid concentration-intensive tasks until further notice. Thank you.

            L Offline
            L Offline
            loket
            wrote on last edited by
            #12

            :omg: I understand he need Visual Assist to complete his variable names then..... /M


            - Don't sweat the petty things, and don't pet the sweaty things.

            L D 2 Replies Last reply
            0
            • M Megan Forbes

              Tim Smith wrote: That is SOOOOOO 20th century. Lol - that's so wierd! I heard some stupid woman saying that in all seriousness in the bathroom of Harrods while Christmas shopping for our family in SA today! Never thought I would hear such a thing till at least 2010 again! BTW - who would have guessed they would charge you £1 to go to the bathroom there! I mean, with 6 floors, who isn't going to need to go? :eek:


              I knew it would end badly when I first met Chris in a Canberra alleyway and he said 'try some - it won't hurt you'..... - Christian Graus on Code Project outages Damned nice for remote servers where using Enterprise Manager is like wadding through treacle while covered in velcro, upside down -Paul Watson on SQL Server Query Analyser

              N Offline
              N Offline
              Nitron
              wrote on last edited by
              #13

              Megan Forbes wrote: charge you £1 to go to the bathroom there! :wtf: Whaaaat! I knew ATM fees were crazy, that's why I came up with the "Solicitor's Fee", but a bathroom fee!!! before you know it, you will have to rent the air! (I'm not sure but I think they already need to do that in LA and Houston (we'll have to ask Nish about SF) X| ) - Nitron


              "Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb

              S 1 Reply Last reply
              0
              • M Megan Forbes

                Tim Smith wrote: That is SOOOOOO 20th century. Lol - that's so wierd! I heard some stupid woman saying that in all seriousness in the bathroom of Harrods while Christmas shopping for our family in SA today! Never thought I would hear such a thing till at least 2010 again! BTW - who would have guessed they would charge you £1 to go to the bathroom there! I mean, with 6 floors, who isn't going to need to go? :eek:


                I knew it would end badly when I first met Chris in a Canberra alleyway and he said 'try some - it won't hurt you'..... - Christian Graus on Code Project outages Damned nice for remote servers where using Enterprise Manager is like wadding through treacle while covered in velcro, upside down -Paul Watson on SQL Server Query Analyser

                R Offline
                R Offline
                Roger Wright
                wrote on last edited by
                #14

                I'd take a ziplock baggie along, fill it at need, and leave it in the aisle before I'd pay to use the facilities! "How many times do I have to flush before you go away?" - Megan Forbes, on Management (12/5/2002)

                D M 3 Replies Last reply
                0
                • R Roger Wright

                  I'd take a ziplock baggie along, fill it at need, and leave it in the aisle before I'd pay to use the facilities! "How many times do I have to flush before you go away?" - Megan Forbes, on Management (12/5/2002)

                  D Offline
                  D Offline
                  David Stone
                  wrote on last edited by
                  #15

                  :omg: You wouldn't! Would you?


                  I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past. -Chris Maunder Microsoft has reinvented the wheel, this time they made it round. -Peterchen on VS.NET

                  R 1 Reply Last reply
                  0
                  • L loket

                    :omg: I understand he need Visual Assist to complete his variable names then..... /M


                    - Don't sweat the petty things, and don't pet the sweaty things.

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #16

                    just imagine him coding before Intellisense feature was added. I am certain it was a nightmare. My article on a reference-counted smart pointer that supports polymorphic objects and raw pointers

                    1 Reply Last reply
                    0
                    • R Roger Wright

                      I'd take a ziplock baggie along, fill it at need, and leave it in the aisle before I'd pay to use the facilities! "How many times do I have to flush before you go away?" - Megan Forbes, on Management (12/5/2002)

                      D Offline
                      D Offline
                      David Stone
                      wrote on last edited by
                      #17

                      Oh, and Roger, what's your MSN address?


                      I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past. -Chris Maunder Microsoft has reinvented the wheel, this time they made it round. -Peterchen on VS.NET

                      1 Reply Last reply
                      0
                      • D David Stone

                        :omg: You wouldn't! Would you?


                        I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past. -Chris Maunder Microsoft has reinvented the wheel, this time they made it round. -Peterchen on VS.NET

                        R Offline
                        R Offline
                        Roger Wright
                        wrote on last edited by
                        #18

                        David Stone wrote: Would you? I just might! Depending on the crowd, of course - too much laughter makes me nervous. When I worked in a hardware store we actually had a customer sit down and use one of the floor display toilets. We're not talking tinkle here - jumbo steamers! Where the heck was our "Legendary Customer Service" that afternoon?:laugh: "How many times do I have to flush before you go away?" - Megan Forbes, on Management (12/5/2002)

                        D M D 3 Replies Last reply
                        0
                        • N Nitron

                          Megan Forbes wrote: charge you £1 to go to the bathroom there! :wtf: Whaaaat! I knew ATM fees were crazy, that's why I came up with the "Solicitor's Fee", but a bathroom fee!!! before you know it, you will have to rent the air! (I'm not sure but I think they already need to do that in LA and Houston (we'll have to ask Nish about SF) X| ) - Nitron


                          "Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb

                          S Offline
                          S Offline
                          Shog9 0
                          wrote on last edited by
                          #19

                          Nitron wrote: before you know it, you will have to rent the air! Ever been to an oxygen bar... ? :rolleyes:

                          ---

                          Shog9 This is my December These are my snow covered dreams This is me pretending This is all I need...

                          1 Reply Last reply
                          0
                          • L loket

                            :omg: I understand he need Visual Assist to complete his variable names then..... /M


                            - Don't sweat the petty things, and don't pet the sweaty things.

                            D Offline
                            D Offline
                            David Wulff
                            wrote on last edited by
                            #20

                            LMAO! :laugh:


                            David Wulff http://www.davidwulff.co.uk

                            Who's that peepin' through my window?

                            1 Reply Last reply
                            0
                            • R Roger Wright

                              David Stone wrote: Would you? I just might! Depending on the crowd, of course - too much laughter makes me nervous. When I worked in a hardware store we actually had a customer sit down and use one of the floor display toilets. We're not talking tinkle here - jumbo steamers! Where the heck was our "Legendary Customer Service" that afternoon?:laugh: "How many times do I have to flush before you go away?" - Megan Forbes, on Management (12/5/2002)

                              D Offline
                              D Offline
                              David Stone
                              wrote on last edited by
                              #21

                              :wtf: No way! That's horrible. Was the customer mentally okay? I don't think anyone would confuse display models from an actual restroom.


                              I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past. -Chris Maunder Microsoft has reinvented the wheel, this time they made it round. -Peterchen on VS.NET

                              1 Reply Last reply
                              0
                              • R Roger Wright

                                I'd take a ziplock baggie along, fill it at need, and leave it in the aisle before I'd pay to use the facilities! "How many times do I have to flush before you go away?" - Megan Forbes, on Management (12/5/2002)

                                M Offline
                                M Offline
                                Megan Forbes
                                wrote on last edited by
                                #22

                                Roger Wright wrote: I'd take a ziplock baggie along, fill it at need, and leave it in the aisle before I'd pay to use the facilities! Lol - I can just see the headlines now: Ziplock hobo in Harrods... ;)


                                I knew it would end badly when I first met Chris in a Canberra alleyway and he said 'try some - it won't hurt you'..... - Christian Graus on Code Project outages Damned nice for remote servers where using Enterprise Manager is like wadding through treacle while covered in velcro, upside down -Paul Watson on SQL Server Query Analyser

                                1 Reply Last reply
                                0
                                • R Roger Wright

                                  David Stone wrote: Would you? I just might! Depending on the crowd, of course - too much laughter makes me nervous. When I worked in a hardware store we actually had a customer sit down and use one of the floor display toilets. We're not talking tinkle here - jumbo steamers! Where the heck was our "Legendary Customer Service" that afternoon?:laugh: "How many times do I have to flush before you go away?" - Megan Forbes, on Management (12/5/2002)

                                  M Offline
                                  M Offline
                                  Megan Forbes
                                  wrote on last edited by
                                  #23

                                  Roger Wright wrote: we actually had a customer sit down and use one of the floor display toilets. We're not talking tinkle here - jumbo steamers! :laugh::laugh::laugh: That's a classic! Did you keep the CCTV footage? :rolleyes:


                                  I knew it would end badly when I first met Chris in a Canberra alleyway and he said 'try some - it won't hurt you'..... - Christian Graus on Code Project outages Damned nice for remote servers where using Enterprise Manager is like wadding through treacle while covered in velcro, upside down -Paul Watson on SQL Server Query Analyser

                                  1 Reply Last reply
                                  0
                                  • R Roger Wright

                                    David Stone wrote: Would you? I just might! Depending on the crowd, of course - too much laughter makes me nervous. When I worked in a hardware store we actually had a customer sit down and use one of the floor display toilets. We're not talking tinkle here - jumbo steamers! Where the heck was our "Legendary Customer Service" that afternoon?:laugh: "How many times do I have to flush before you go away?" - Megan Forbes, on Management (12/5/2002)

                                    D Offline
                                    D Offline
                                    Domenic Denicola
                                    wrote on last edited by
                                    #24

                                    Oh my... I actually did that as a very small child. I sure hope that wasn't me :-O. This wouldn't have been in the Silicon Valley area, would it've? :~


                                    -Domenic Denicola- [CPUA 0x1337] “I was born human. But this was an accident of fate—a condition merely of time and place. I believe it's something we have the power to change…”

                                    R 1 Reply Last reply
                                    0
                                    • D Domenic Denicola

                                      Oh my... I actually did that as a very small child. I sure hope that wasn't me :-O. This wouldn't have been in the Silicon Valley area, would it've? :~


                                      -Domenic Denicola- [CPUA 0x1337] “I was born human. But this was an accident of fate—a condition merely of time and place. I believe it's something we have the power to change…”

                                      R Offline
                                      R Offline
                                      Roger Wright
                                      wrote on last edited by
                                      #25

                                      No Domenic, it wasn't you:-D This happenned in Bullhead City, AZ. Size of the spoor indicated to the trained tracker that the game afoot was not small, but very large indeed! The lack of any nearby paper products led us further to surmise that perpetrator left wearing a dress to cover up the dirty deed. "How many times do I have to flush before you go away?" - Megan Forbes, on Management (12/5/2002)

                                      D 1 Reply Last reply
                                      0
                                      • R Roger Wright

                                        No Domenic, it wasn't you:-D This happenned in Bullhead City, AZ. Size of the spoor indicated to the trained tracker that the game afoot was not small, but very large indeed! The lack of any nearby paper products led us further to surmise that perpetrator left wearing a dress to cover up the dirty deed. "How many times do I have to flush before you go away?" - Megan Forbes, on Management (12/5/2002)

                                        D Offline
                                        D Offline
                                        Domenic Denicola
                                        wrote on last edited by
                                        #26

                                        Phew! ;P


                                        -Domenic Denicola- [CPUA 0x1337] “I was born human. But this was an accident of fate—a condition merely of time and place. I believe it's something we have the power to change…”

                                        1 Reply Last reply
                                        0
                                        • T Thomas Freudenberg

                                          Last week we had the discussion about the stupidest variable names[^]. Today I was reading the WholeTomato forum and stumbled over this message[^]. This guy is complaining, that VisualAssist does not recognize variables with names longer than 100 characters. The VisualAssist guy asked him for an example, that they know the actual required length. The guy answered:

                                          szRegistryAnalysisCategoryItemTextReportColumnRelativeQuantityToCalibratorAverageMinus1StandardDeviation

                                          :omg: 105 characters! I think this variable may be on top 1 of the stupidest variable names. :wtf: So, what's your longest variable names? Are you able to overtrump that guy? Regards Thomas Sonork id: 100.10453 Thömmi


                                          Disclaimer:
                                          Because of heavy processing requirements, we are currently using some of your unused brain capacity for backup processing. Please ignore any hallucinations, voices or unusual dreams you may experience. Please avoid concentration-intensive tasks until further notice. Thank you.

                                          V Offline
                                          V Offline
                                          vudmaska
                                          wrote on last edited by
                                          #27

                                          Funny thread! Actually I worked with a guy who i'd consider a pretty good programmer but he always insisted on using these gawd_awful_long_fully_qualified_names - this is ASP not 3D, I'd think to myself. Anyway, during a code review a guy suggested he declare memory space for his var names. I spit coffee all over the conference table. priceless. ;P

                                          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