| « Prev | Page 1 | Page 2 | Page 3 | Next » |
|
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.) |
|
I think he meant to call the enum "bull"
|
|
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! |
|
Less is more, and this is the haiku of WTFs.
|
|
May I be the first to say: brillant!
|
|
the real WTF is that I am at work today!
|
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 ;) |
Re: Classic WTF - What is Truth?
2006-07-03 12:21
•
by
Pyromancer
|
|
Dang! That one never gets old
|
|
What is Truth? There's only one entity that can not only define, but redefine True Truth. The White House. >BiggBru |
I work today - I'm Canadia. We should get today off but my employer gave me friday off instead (Sat. was Canada Day) |
|
Ahh classic. Who remembers the 'NotTrueOrFalse' one? |
off to the reeducation camp with you! captcha: whiskey |
|
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) |
|
I'm not sure if this guy thought about philosophical implications of logic values and what truth values really mean, but it isn't entirely clear and evident that there's only "true" and "false" in logic - although for binary-only computer systems, it is quite convenient to assume so.
Have a look here (Wikipedia) for some pointers into the direction of modal logic and other systems that include a third logical value. |
In my distant past, I heard of a tribe somewhere that uses 1, 2 and "many." Though the odd physicist or banker might argue, I often wonder whether our system is an improvement. (For instance, they don't get overflow errors.) |
Re: Classic WTF - What is Truth?
2006-07-03 13:05
•
by
ChiefCrazyTalk
|
The real WTF is that I'm unemployed and the guys whose code is so horrible that it makes this web site are not. |
|
There isn't anything much wrong with that enum that I can see. Logic doesn't have to be true or false.
Nothing wrong with saying: It's true, it's false, or we don't know. Oval uses 6 logic results that can be combined with other results ( http://tinyurl.com/h9yc2 ) look for == DirectivesType == |
|
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. |
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 |
we have our "czech days" on 5th and 6th - but i'll work as well. i think this illness is called workoholism ;) |
|
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!) |
|
... and I won't sucumb to your UnknownException trichotomies!
|
Re: Classic WTF - What is Truth?
2006-07-03 14:03
•
by
lucky luke
|
hmmm... i wonder why?? maybe if you learned proper grammar you would be employed ;) |
There are 10 types of people..
|
If you set out to fail and are successful, then what have you done? |
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]].' |
Re: Classic WTF - What is Truth?
2006-07-03 14:25
•
by
dept non style dep
|
Maybe this enhancement can work: |
|
I would've thought it would be
enum Bool { True, False, Maybe, Dunno, What }; |
enum Bool { |
Re: Classic WTF - What is Truth?
2006-07-03 14:47
•
by
John Smallberries
|
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? |
Re: Classic WTF - What is Truth?
2006-07-03 14:56
•
by
Reeeeeaaaaaaly?
|
May I inquire: what is the significance of '42' ? Obviously a running joke I missed... |
Re: Classic WTF - What is Truth?
2006-07-03 14:59
•
by
Reeeeeaaaaaaly?
|
You win! |
Re: Classic WTF - What is Truth?
2006-07-03 14:59
•
by
marvin_rabbit
|
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. |
Re: Classic WTF - What is Truth?
2006-07-03 15:01
•
by
Zaphod Beeblebrox
|
|
Read Hitchhiker's Guide to the Galaxy, or see Wikipedia:
http://en.wikipedia.org/wiki/42_%28number%29#In_pop_culture |
Re: Classic WTF - What is Truth?
2006-07-03 15:01
•
by
John Smallberries
|
http://en.wikipedia.org/wiki/The_Answer_to_Life,_the_Universe,_and_Everything |
Re: Classic WTF - What is Truth?
2006-07-03 15:02
•
by
Reeeeeaaaaaaly?
|
What's wrong with the grammar? It's a little bit of a run-on sentence, but it's grammatically correct. |
You should read this book: http://www.amazon.com/gp/product/0345391802 |
Re: Classic WTF - What is Truth?
2006-07-03 15:04
•
by
Reeeeeaaaaaaly?
|
I've never seen anyone fully parenthesize a sentence before - I'm impressed :) |
Re: Classic WTF - What is Truth?
2006-07-03 15:05
•
by
Reeeeeaaaaaaly?
|
Come on now, do it right: WTF |
Originally, I was thinking of Eh, but then I thought: what the hell... |
|
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".)
|
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 |
|
"I tink not": think
|
Re: Classic WTF - What is Truth?
2006-07-03 16:16
•
by
richdiggins
|
|
obviously, you make more than I...
time != money |
What were those last three words again? (OK, that last one word?) Er, yes, I see now. 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... |
The real WTF?! here is that your grammar is only marginally better. |
Yes, Clinton did do this so well. |
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). |
Don't fret! With the quality of code shown here, there should be quite a few openings coming up. |
Even in computing verilog has the 'X' state (and even 'Z' - but I don't think that really counts) |
| « Prev | Page 1 | Page 2 | Page 3 | Next » |