• (cs) in reply to anonymous

    If all you have is C, every variable looks like a boolean. ;-)

  • say what? (unregistered) in reply to impslayer
    impslayer:

    It's a bit WTFish that the replies to this WTF are such a mix of

    1) People defending/defying bools/trools/whatnot seriously, AGAIN

    2) People just goofing around having fun (some VERY funny posts)

    3) People making totally off-topic posts

    (Ok, 3) checked for me.)

     

    trools ??? (I get it, just never heard that before)

  • erstwhile reader (unregistered) in reply to Ringo
    Ringo:

    Can anyone provide a scenario that can not be reduced to 1/0? 

    Are you asking if anyone can provide a scenario that can not be reduced to undefined?

     

  • Unklegwar (unregistered)

    Here's the real WTF:

    "With most Americans (including myself) enjoying a long, Indepdence Day Weekend,"

  • Just an observation (unregistered) in reply to Unklegwar

    The real WTF is that so many people are commenting (again) on what a WTF a recent-classic WTF really is.

  • Tom (unregistered)

    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.

  • Anonymous (unregistered) in reply to Tom

    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.

  • (cs) in reply to Anonymous
    Anonymous:
    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.


    *lol* back to square one: "Bool" means...?
  • (cs) in reply to ammoQ

    ammoQ:
    Anonymous:
    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.


    *lol* back to square one: "Bool" means...?

    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 ;)

  • eddiedatabaseboston (unregistered) in reply to rezna


    Anonymous:
    Anonymous:
    Anonymous:
    Anonymous:
    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 ;)



    I work today - I'm Canadia. We should get today off but my employer gave me friday off instead (Sat. was Canada Day)

    we have our "czech days" on 5th and 6th - but i'll work as well. i think this illness is called workoholism ;)



    What's workohol?

  • (cs) in reply to ParkinT
    ParkinT:
    Anonymous:
    ParkinT:

    There are 10 types of people..

    • Those who understand binary
    • Those who don't

    That's not funny, it's just dumb. Go launch yourself into space. CAPTCHA = stfu

    It is obvious, sir, that you DO NOT understand binary.



    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
  • (cs) in reply to Richard Nixon
    Richard Nixon:

    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.


    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.
  • (cs) in reply to ammoQ
    ammoQ:
    Richard Nixon:

    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.


    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.


    I am watching you!

    sincerely,
    Richard Nixon
  • J.T. (unregistered) in reply to Looce
    Anonymous:

    lucky luke:
    Anonymous:
    Anonymous:
    the real WTF is that I am at work today!
    The real WTF is that I'm unemployed and the guys whose code is so horrible that it makes this web site are not.


    hmmm... i wonder why?? maybe if you learned proper grammar you would be employed ;)

    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]].'


    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!
  • J.T. (unregistered) in reply to Shen
    Shen:
    What is Truth?
    Baby don't hurt me
    Don't hurt me
    No more

    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.
  • J.T. (unregistered)

    Overall, I think this was a pretty poor attempt at starting a booling league.

  • J.T. (unregistered) in reply to eddiedatabaseboston
    Anonymous:

    Anonymous:
    Anonymous:
    Anonymous:
    Anonymous:
    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 ;)



    I work today - I'm Canadia. We should get today off but my employer gave me friday off instead (Sat. was Canada Day)

    we have our "czech days" on 5th and 6th - but i'll work as well. i think this illness is called workoholism ;)



    What's workohol?



    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.


  • anonymous workaholic (unregistered) in reply to J.T.

    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.

  • Not WTF (unregistered)

    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

  • (cs) in reply to J.T.

    Anonymous:
    Overall, I think this was a pretty poor attempt at starting a booling league.

    Just trolling the posts....I ran across yours.  Made me chuckle.  Clever.  Is there any more? Can you expound on this Booling League concept?

  • Luciano Mollea (unregistered)

    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...

  • Ishai (unregistered) in reply to Benzaholic

    I would go with 1,0,401

    figure it out.

  • OOooh (unregistered)

    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!

  • Mr Pessimism (unregistered) in reply to ParkinT

    I'm FileNotFound when it comes to understanding binary

Leave a comment on “Classic WTF - What is Truth?”

Log In or post as a guest

Replying to comment #:

« Return to Article