- 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
And how might we map this to numeric values? 1, 0, 42?
(I couldn't pass up the chance for my very first comment on TDWTF to be a possible first on a subject.)
Admin
I think he meant to call the enum "bull"
Admin
Ya also gotta love the way that "True"s value is zero in that enum as well - so if you do a:
Bool check = True; if(check) { // blah blah blah }
It will always fail.
Or even: Bool launchNukes = False; if(launchNukes)...
It's all fun and games 'til someone loses an eye!
Admin
Less is more, and this is the haiku of WTFs.
Admin
May I be the first to say: brillant!
Admin
the real WTF is that I am at work today!
Admin
well i've been in work also on saturday and sunday, and i plan to work tommorow as well.
P.S. i'm not american ;)
Admin
Dang! That one never gets old
Admin
<FONT face=Georgia>What is Truth? There's only one entity that can not only define, but redefine True Truth.</FONT>
<FONT face=Georgia>The White House.</FONT>
<FONT face=Georgia>>BiggBru</FONT>
Admin
I work today - I'm Canadia. We should get today off but my employer gave me friday off instead (Sat. was Canada Day)
Admin
Ahh classic.
Who remembers the 'NotTrueOrFalse' one?
Admin
off to the reeducation camp with you!
captcha: whiskey
Admin
Which is the chain of thought that makes you think:
- When you open a file you can return a true if everything is correct
- False if anything went wrong (network timeout, locked file,...)
- FileNotFound if:
- When used in a function that opens a file and the fie doesn't exist
- When used in a mission critical database and you want your customers to sign for 24-7 support, example:
- Hello, I'm trying to record a new order and the system keeps giving a FileNotFound error
- Do you have a backup? (that was my preferred question when I worked at a help desk)
Admin
Admin
The real WTF is that I'm unemployed and the guys whose code is so horrible that it makes this web site are not.
Admin
Well, in Progress 4GL a boolean variable (called logical) can be true, false or undefined (displayed as ?).
Sometimes this can be useful.
At least you can forbid undefined values in the database.
Admin
Aha! I finally found FileNotFound!
But then, if I found FileNotFound, does the third enum member become FoundFileNotFound? Or does the file become found? My eyes! They're burning! The goggles, they do nothing!
Captcha = paula :D
Admin
we have our "czech days" on 5th and 6th - but i'll work as well. i think this illness is called workoholism ;)
Admin
Lovely. ;-) Presumably this is how the coder in question attempted to handle error conditions. If he thinks of enough error conditions, Bool could come to have quite a few values....
It also reminds me of my own WTF: int passfail. Apart from being stupidly named, passfail could have three values. Alas, I do not remember what they were. It's been seven years, and the versions of the code preserving my stupidity are no longer kept around in an easy-to-access location. (Thank goodness!)
Admin
... and I won't sucumb to your UnknownException trichotomies!
Admin
hmmm... i wonder why?? maybe if you learned proper grammar you would be employed ;)
Admin
There are 10 types of people..
Admin
If you set out to fail and are successful, then what have you done?
Admin
That message has correct grammar.
'(The real WTF) is [[that I'm unemployed] and [((the guys) whose code is [so horrible that it makes this web site]) are not]].'
Admin
Admin
I would've thought it would be
<font face="Courier New">enum Bool
{
True,
False,
Maybe,
Dunno,
What
};
</font>
Admin
<FONT face="Courier New" size=2>enum Bool {
Captcha = truthiness :) How fitting.Success,
Failure,
FailureToSucceed,
SuccessInFailing
}</FONT>
Admin
Well, I worked Saturday, Sunday, today and will work tomorrow. And I'm an American.
Now that's a WTF. Aren't we supposed to be lazy?
Admin
May I inquire: what is the significance of '42' ? Obviously a running joke I missed...
Admin
You win!
Admin
So, If I'm working on a project and writing horrible code... If I can manage to repeatedly make it a little bit more horrible, eventually it reach a point that a "Community Server" message board will suddenly appear.
Yeah, I'll buy that.
Admin
http://en.wikipedia.org/wiki/The_Answer_to_Life,_the_Universe,_and_Everything
Admin
What's wrong with the grammar? It's a little bit of a run-on sentence, but it's grammatically correct.
Admin
You should read this book: http://www.amazon.com/gp/product/0345391802
Admin
I've never seen anyone fully parenthesize a sentence before - I'm impressed :)
Admin
Come on now, do it right:
WTF
Admin
Admin
I think it's a bit soon to be repeating things that were posted so recently. Most readers probably still remember them well! (Ha ha, the captcha word is "billgates".)
Admin
That's for sure, given that this particular WTF (FileNotFound) has turned into a running joke.
But do you remember the "[file name] is already exist. Are you file update?" dialog in a Pop-up Potpourri? I tink not. :)
Captcha = quality
Admin
"I tink not": think
Admin
obviously, you make more than I...
time != money
Admin
Every so often, someone asks what "RTFM" or some such stands for. I tell them, "Read The Manual." Sometimes they get it, sometimes they don't...
Admin
The real WTF?! here is that your grammar is only marginally better.
Admin
Yes, Clinton did do this so well.
Admin
This claim is a minor WTF in itself, since logicians study numerous alternative forms of logic, many of which have more than two truth values (even infinitely many different truth values).
Admin
Admin
Even in computing verilog has the 'X' state (and even 'Z' - but I don't think that really counts)
Admin
What is Truth?
Baby don't hurt me
Don't hurt me
No more
Admin
Hmmm... what is the difference between fuzzy logic and the theory of probability?
Admin
Why is everybody freaking out about the definition of logic? The name of the enum is Bool, which is short for boolean. From dictionary.com :
- Of or relating to a logical combinatorial system treating
variables, such as propositions and computer logic elements, through
the operators AND, OR, NOT, and XOR: a browser
that supports Boolean searches.
- Of or relating to a data type or variable in a programming language that can have one of two values, true or false.
The WTF is the redefinition of what a boolean is. As far as I can tell, it violates both parts of the definition--so much for readable code.