Best accidental identifiers
-
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
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 -
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
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
-
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: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
-
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
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
-
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".
-
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
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".
-
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".
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
-
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
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
-
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
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".
-
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".
Cheaper than a company outing to a bar...Smart thinking on their part. Just no product releases after 4 pm on Friday:) Jim
-
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
If you're going to criticise someone's spelling in that way it would be wise to learn to spell 'sandwich'! ;P Phil