- 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
He was coding with a plastic spoon in his mouth.
Admin
That's a WTF comment if ever I saw one.
Admin
SUBSTITUTE_me_for_him; SUBSTITUTE_my_coke_for_gin; // ...
<edit> damnit, too late...
Admin
Whatever happened to the clbuttic rudeness filter? Shouldn't this be "SUSBSbreastUTE_CODE"?
Admin
In most languages I've worked in, this would generate a compile time error. The question is, then, why would you use invalid code as a "TODO" (though it's less of a TODO and more of a breaking the build) instead of doing an #error preprocessor or something like that?
Admin
C-£?
Admin
C-Number-Sign.
So what happens if you have multiple todos in one function?
Admin
Admin
Oh, Bog! BTDT. Three times. The first two times, they didn't. The third time was so bad I never tried it again.
Hint: when writing code to replace something the lead developer couldn't be bothered to fix (or couldn't fix), the careful FNG+ will ensure that the new code at least compiles before submitting it to the lead developer. The wary FNG will at least make certain that it is either all written in a single language (hopefully the correct one), or with the correct glue to ensure that it all works.
I had written three lines of illegible perl code. He proposed to replace it with >50 lines of csh, sed, C, Pascal, and something else - maybe Java? About 2001, so D-flat was possible, too (although not on his resume - but neither was Pascal). No glue; it was all written as if he thought it was all valid perl code. And, the relevance to what the three lines of legible perl code did was quite low.
Admittedly, it did cause the perl code to be re-written. The attempt was so bad, I felt compelled to at least document in comments what the code was doing. After writing about 20 lines of comments, it became obvious to me how to rewrite the code legibly.
+FNG = Friendly New Guy. Really. Well, sometimes Funny New Guy. Certainly not Florida National Guard. HTH. HAND.
Admin
Now where did I leave my ostrich cannon ?
Admin
SUBSTITUTE_you_for_my_mom;
At least I'll get my washing done.
Sorry, you totally asked for that :-P
Admin
looks to me like not only did the SUSBSTITUTE_CODE method make a completely new developer aware of a potential bug to fix, but it also got an extra 61 people who don't even work at the company to consider it. Good luck getting that kind of attention with any traditional TODO method.
Admin
Then you have a dodo.
Admin
Admin
"no one actually cares for //TODO" , as no one actually cares for warnings, as it seems.
Admin
Not sure about Visual C#, but many compilers offer the ability to treat warnings as errors. It doesn't always help because sometimes code compiled on one architecture compiles without warnings but on others it will warn about something non-critical like iconv() expecting a const char * on BSD systems or simply char * on GNU systems.
In any case, with gcc I quite often compile with -Wall -Werror just to keep things "tidy".
Admin
I'm sorry, I'm not exactly seeing the problem. He put it there where everyone will see it, and eventually fix the code. Now that Franc saw it, he will presumably fix the code. Sounds like mission accomplished to me.
Admin
The real wtf is that anyone actually uses SourceSafe anymore.
Admin
#if DEBUG #warning Fix this code before we release #else #error I told you to fix this before we release #endif
Admin
I prefer:
The compiler / preprocessor is required to issue a diagnostic:
cc: unknown pragma: WTF!
Always good for a laugh. Even when it is not funny.
Admin
Admin
I don't see the problem, but then again fortunately I don't have OCD. Don't worry, once you've programmed a couple of hundred projects to tight deadlines you'll be wishing the internet has a delete button.
Admin
C-Sharp or C-Hash, silly American.
Admin
Treat warnings as errors FTW, that's how pros do it.
Seems pride in one's work is a lost cause these days...
Admin
I had a smart ass over eager Jr. Developer once - I think he's a plumber now...
Admin
The RWTF is that they used source safe
Admin
Admin
Admin
Or is it Hash-C-ish???
Admin
Given that a plumber takes maybe even more money than I as an independent worker I don't see what is wrong about it.
Given all those TRWTFs I wonder if I shouldn't become one myself (and create real and not virtual WTFs).
Admin
hello