- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
I was thinking exactly the same ("What was I thinking), when I saw my code, written last week, 5 minutes ago.
Anyways, it is some kind of chicken-and-egg problem for which I apparently haven't found a good solution...
Admin
... that's just self-documenting code at its finest!
Admin
They where going to proofread, but they forger were they where.
Admin
This literally made me laugh out loud. I've seen and even left comments like that ... usually following an extended multi-hour debugging session in the middle of the night. They usually don't stay there past the next time I see them, but it sure makes me feel better to leave them in the first place.
I can completely feel where that guy was coming from there.
Admin
The WTF is that it should be "fewer" than 20 pages. Programmers can't speak English properly!
Admin
I inherited a project once which had an agent called "UpdateTheStupidStatus" (with all the wonderful variable names like 'theDocument' and 'theTable'...but that's the topic of another rant.) I'm not sure if he was updating the status which happened to appear to be stupid to him or like an archive bit, setting the status to "Stupid." Only his hairdresser knows. Oh, wait...he's bald.
Admin
programming 8051 microcontrollers
That's a lot of microcontrollers :)
Admin
Admin
I wonder if the curse word was ****'ed out in the actual comment.
Admin
Admin
Short and to the point. The perfect comment.
Admin
Admin
Whats wrong with this?
DoNotEjectInInactiveMode EQU StatusFlags.7
Admin
If it is not set, you mustn't eject!
Admin
Lame pun + bad typing = failed humour
Admin
They WERE going to proofread but they FORGET (GOT) where they WERE.
Admin
Ok, what guy was trying to do was make a funny by placing mis-spellings and grammatical errors throughout the entire line of his post. Come on, get with it.
Admin
That's NOTHING. What was I thinking ?!?
[image] Keep an eye open for my stolen truck, please!
Admin
What a beautiful truck! I'm sorry to hear that it was stolen. Good luck with that, it sounds like you've given the police some pretty decent leads already!
Admin
you can always hope it was Overhaulin!
Admin
The WTF is in the "while emulating the exact behaviour of the previous hardware" ... Or at least, that's a wtf I have encountered many times. How many times has the requirement been to make it work "just like it did before" when the way it was before was the wrong way to do something? The smart clients are the ones who actually listen when I tell them that they don't really want to do that.
Admin
That's because in *NIX it's | less, not | fewer..
Admin
Admin
TRWTF is using an image with no alt text instead of styled text to display simple fixed-width styled code.
Admin
"new jerry 29.8.95"
Jerry Garcia died August 9, 1995 (9.8.95, to use that format). Somehow related?
Admin
Admin
heh, A buddy of mine who used to work at the company I work for was telling me a story quite a long time ago, and this story made me think of it...
he worked for a company a while back that was doing video games for kids. I think one of them was for Disney. Anyways, another guy he worked with left the name of a button control as CantChangeThisYellowFuckingButton. Who knows what the hell was happening that caused such a naming convention... But what happened afterwards is worth its weight in gold. The application ended up throwing out an exception to the end users (somehow making it through to production!) with this wonderful bit... "CantChangeThisYellowFuckingButton".
Doubtful that Disney (or whoever it was) was too happy about that...
(hopefully the guy reads this and posts the more accurate rendition of the story... --telephone game, you lose some of the tasty details.. funny stuff tho, imho. And a good reason why it's best to leave the dirty words for the comments section, and even better not to do it at all.)
Admin
Well I know a game company where they were creating a game for kids based on a popular (around here) comic strip. One of the mini-games was to get rid of a woman's cloths somehow, down to her bra & panties.
Being the naughty perverts that we all are, the designer, programmers and artist decided to go all the way down, with graphics for the naked woman and each piece of cloth, and just block the game at the correct point. What had to happen, happened. During Q&A, some tester stumbled on a bug (or was it a forgotten backdoor/cheat code?) where you could undress the poor lady completely.
Let it be said neither the client nor the company's boss were happy about that...
Admin
Admin
This all seemed a little suspicious, so my dad brought it to my attention and I did a bit of research on the Net and came up with various similar stories, Snopes summary: http://www.snopes.com/crime/fraud/cashier.asp
As you say on your blog, a cashiers check is quite worthless, it's no more secure than a personal cheque. My dad wisely told the buyer that he could pick up the car when the cheque cleared, of course it didn't, it was a fake, never heard from the buyer again after that.
Admin
It is an improvement over the original, although I get the feeling there is probably much more to it and the lack of ejection is just one of its many side effects.
However, can I raise one issue with your solution: I hate this kind of negative variable naming. Sure, it looks nice at this point, but soon enough you will be going
if (!DoNotEjectInInactiveMode) { ... }
...and that kind of double negative logic is confusing at best. Lately I have found myself trying to remove all forms of negativity from my source code (only where it makes sense of course), changing negative variable and function names, and replacing things like
if (!condition) { a; } else { b; }
by
if (condition) { b; } else { a; }
etc. And I find it does help with readability and maintainability.
Of course if you are a 'leet coder you won't not need no such anti-negative ideas...
Admin
Don't you mean "Programmers cannot properly speak English"?
Admin
Oh no! They didn't follow nonsensical and incorrect prescriptivist grammarian advice! The world is doomed.
Admin
Oh yeah? Well, try programming 68302 processors. I've done that, and lived to tell about it!
Bah!
Admin
He wasn't speaking.
Admin
Head Dead Head Dead
Wish I could remember the publication.
Admin
Thats nothing, try programming 65C816 microprocessors!
Admin
Once, long ago, I had this web application which was mostly a website with some lists and a nice "what's up" box on the front page. The What's Up was a nifty scrolling javascript which was generated on the fly when the editor added/removed a notice in the business side of the site.
After testing, we sent the app to the public-facing server and by error the javascript for the test "What's Up" made it with the rest. Suffice it to say that ever since, nobody in the dev team ever included profanity (or sillyness) in their test sets again...
Admin
Ah, but don't you mean: "Most programmers cannot speak proper English"?
Admin
Sometimes unfortunate names are used and the programmer doesn't realize it's a bad name until later. In one program I maintained, the original programmer had a variable that held the transaction count. There are many ways to shorten "count", and most of them are polite. The original programmer hadn't noticed that what he typed wasn't polite until I pointed it out. Worst part: it was COBOL, so he didn't have to shorten it at all. He could have called it "TRANSACTION-COUNT".
Admin
Similarly, I worked on a program where a previous coder had needed a variable for the exact sigma value. Of course now you could use "ExactSigma" or "SigmaExact". That coder must have been trying for the latter, but it being some early flavor of Fortran she was limited to six characters, and all caps at that, so years later I was left to wonder at the variable named "SEXACT".
Admin
Don't you mean "Programmers cannot properly speak English"?
No - that implies it is improper for programmers to English, whereas we all know that programming should alwasy be done in English. Of course, if its not your native language, this might lead to meaningless comments, but WTF.
captcha: Yeah, really!
Admin
like the "Pen Island" website : http://www.penisland.net/
Admin
I have a truly marvelous proof of the need for ExtraStupidFlag which this comment box is too small to contain.
Admin
I feel so inadequate; I've only programmed 6502 microprocessors!
Admin
Possibly "forger" is a typo for forget. Just possibly.
Admin
Brings back fond memories of trawling the source code for an old Text UI library called C-Scape, and encountering the comment "A squid eating dough in a polyethylene bag is vast and bulbous, got me?"
(Odder still, I actually recognised the quote from Captain Beefheart's Trout Mask Replica album, but still had no idea how it applied to the code in question).
Admin
I believe that was in The Onion.