What's your longest variable name?
-
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.Imagine a situation, where you have yo take over that project. Probably a "Find and Replace" will come in handy then. :-D My article on a reference-counted smart pointer that supports polymorphic objects and raw pointers
-
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. -
Imagine a situation, where you have yo take over that project. Probably a "Find and Replace" will come in handy then. :-D My article on a reference-counted smart pointer that supports polymorphic objects and raw pointers
-
"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.
LOL 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. -
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.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 -
"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.
-
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_HelmMichael 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. -
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.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
, ortoto2
I hurt so bad inside I wish you could see the world through my eyes It stays the same I just wanna laugh again
-
"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.
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
-
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. -
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
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
-
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
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)
-
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)
: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
-
: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.
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
-
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)
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
-
: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
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)
-
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
-
: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.
-
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)
: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
-
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)
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