- 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
If all you have is C, every variable looks like a boolean. ;-)
Admin
trools ??? (I get it, just never heard that before)
Admin
Are you asking if anyone can provide a scenario that can not be reduced to undefined?
Admin
Here's the real WTF:
"With most Americans (including myself) enjoying a long, Indepdence Day Weekend,"
Admin
The real WTF is that so many people are commenting (again) on what a WTF a recent-classic WTF really is.
Admin
There may be valid reasons for implementing a 3-state logic, but this is not one of those cases. A valid example would be where the 3rd state is Undefined / Unknown, or InheritFromParent / DontChange / KeepDefault. This FileNotFound looks like a horrible hack.
Admin
If you have a function like Bool IsFileValid() or something, then you need three possible return values: True, False, and FileNotFound. Not a WTF at all.
Admin
*lol* back to square one: "Bool" means...?
Admin
Heh, even though I think this was a bit of tongue-in-cheek this WTF really feels like a never-ending story :)
Or perhaps the twilight zone ;)
Admin
What's workohol?
Admin
I think he probably got the joke. It's not as though that little line is an original utterance by you - it's on t-shirts after all. So I can't speak for the anonymous poster but I do understand the line AND I do not think it is funny.
It's old and stale. While I cannot control what you post, I would appreciate it if you did not post that again. Thank you for your consideration of this request.
sincerely,
Richard Nixon
Admin
I wholeheardedly agree and like to add that next time when I have to read the "10 types" joke I might be tempted to abuse my moderator superpower.
Admin
I am watching you!
sincerely,
Richard Nixon
Admin
So, let's see here...things in parentheses get evaluated first...then brackets, then following normal rules, right? That would make that sentence:
"The guys whose code is the real WTF so horrible that it makes this web site that I'm unemployed is and."
You're right. That makes much more sense.
captcha: random
How apropos!
Admin
You and your dance party friends can leave right now.
:)
captcha: whiskey, cause sometime a stiff belt is needed to make this stuff go down easier.
Admin
Overall, I think this was a pretty poor attempt at starting a booling league.
Admin
How to make Workahol: Take 20 employees. Make them work for 96 hours straight, starting on Friday at midnight. On Tuesday morning, drain off their cerebrospinal fluid and put it into a glass jar. Seal the top with heat-conductive tape and store the jar inside the chassis of a 64-way hyperthreaded Xeon server. Leave for 7 days.
Admin
That's no way to treat your employees! As a morally conscious consumer I would only buy naturally produced workahol products, drained off the spines of professionals who CHOOSE to work all night long out of their own free will. Just imagine all the juicy natural workahol flowing through the brains of these highly qualified employees, as they make the decision to work to exhaustion... making them easy prey for workahol producers ready to drain their cerebrospinal fluids. Yum.
Admin
It's called a tribool and not a wtf at all.
http://en.wikipedia.org/wiki/Ternary_logic
C++'s boost library has a tribool in it.
http://www.boost.org/doc/html/tribool.html
Admin
Just trolling the posts....I ran across yours. Made me chuckle. Clever. Is there any more? Can you expound on this Booling League concept?
Admin
he! seen that also.
A C function was declared as returning bool. And bool was typedef'd on int (or unsigned int it's not that important).
Guess what, someone changed the comment and decided that the function could return
* true
* false
* -2
and if I remember justification was that false was returned on "generic error" and -2 on "other error".
I'm still trying to catch that other error...
Admin
I would go with 1,0,401
figure it out.
Admin
Dude, the enum was named Bool, as in Boolean algebra, as in binary logic.
So, uh, thanks for being so exceedingly knowledgeable that you just had to inform the unwashed masses that there were higher order logic systems out there.
Maybe next time you could give us a link to some theses on ternary computing, too!
Admin
I'm FileNotFound when it comes to understanding binary