Comment On Classic WTF - What is Truth?

With most Americans (including myself) enjoying a long, Indepdence Day Weekend, here's another classic ... [expand full text]
« PrevPage 1 | Page 2 | Page 3Next »

Re: Classic WTF - What is Truth?

2006-07-03 11:38 • by Benzaholic

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

Re: Classic WTF - What is Truth?

2006-07-03 11:44 • by Seb
I think he meant to call the enum "bull"

Re: Classic WTF - What is Truth?

2006-07-03 11:50 • by Ken Greene
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!

Re: Classic WTF - What is Truth?

2006-07-03 12:05 • by John Bigboote
Less is more, and this is the haiku of WTFs.

Re: Classic WTF - What is Truth?

2006-07-03 12:09 • by bcat
May I be the first to say: brillant!

Re: Classic WTF - What is Truth?

2006-07-03 12:10 • by richdiggins
the real WTF is that I am at work today!

Re: Classic WTF - What is Truth?

2006-07-03 12:18 • by rezna
80095 in reply to 80093
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 ;)

Re: Classic WTF - What is Truth?

2006-07-03 12:21 • by Pyromancer
80096 in reply to 80095
Dang! That one never gets old

Re: Classic WTF - What is Truth?

2006-07-03 12:22 • by BiggBru

What is Truth? There's only one entity that can not only define, but redefine True Truth.


The White House.


>BiggBru

Re: Classic WTF - What is Truth?

2006-07-03 12:30 • by lemon
80098 in reply to 80095
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)

Re: Classic WTF - What is Truth?

2006-07-03 12:34 • by Grovesy
80099 in reply to 80098

Ahh classic.


Who remembers the 'NotTrueOrFalse' one?

Re: Classic WTF - What is Truth?

2006-07-03 12:39 • by Kazan
80101 in reply to 80097
BiggBru:

What is Truth? There's only one entity that can not only define, but redefine True Truth.


The White House.


>BiggBru



off to the reeducation camp with you!




captcha: whiskey

Re: Classic WTF - What is Truth?

2006-07-03 12:40 • by Anton

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)

Re: Classic WTF - What is Truth?

2006-07-03 12:56 • by Guido
80104 in reply to 80102
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.

Re: Classic WTF - What is Truth?

2006-07-03 13:04 • by JBL
80105 in reply to 80087
Anonymous:

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

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
80106 in reply to 80093
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.

Re: Classic WTF - What is Truth?

2006-07-03 13:08 • by Spacen
80107 in reply to 80104
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 ==

Re: Classic WTF - What is Truth?

2006-07-03 13:12 • by André
80109 in reply to 80099
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.

Re: Classic WTF - What is Truth?

2006-07-03 13:24 • by Looce
Alex Papadimoulis:

With most Americans (including myself) enjoying a long, Indepdence Day Weekend, here's another classic ...




enum Bool 

{
True,
False,
FileNotFound
};


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

Re: Classic WTF - What is Truth?

2006-07-03 13:48 • by rezna
80111 in reply to 80098
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 ;)

Re: Classic WTF - What is Truth?

2006-07-03 13:52 • by Calli Arcale
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!)

Re: Classic WTF - What is Truth?

2006-07-03 13:54 • by Marcos Dione
... and I won't sucumb to your UnknownException trichotomies!

Re: Classic WTF - What is Truth?

2006-07-03 14:03 • by lucky luke
80115 in reply to 80106
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 ;)

Re: Classic WTF - What is Truth?

2006-07-03 14:16 • by ParkinT
Alex Papadimoulis:

 




enum Bool 

{
True,
False,
FileNotFound
};

 



There are 10 types of people..



  • Those who understand binary

  • Those who don't

 

Re: Classic WTF - What is Truth?

2006-07-03 14:17 • by ParkinT
80117 in reply to 80110
Anonymous:
Alex Papadimoulis:

With most Americans (including myself) enjoying a long, Indepdence Day Weekend, here's another classic ...




enum Bool 

{
True,
False,
FileNotFound
};


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



If you set out to fail and are successful, then what have you done?

Re: Classic WTF - What is Truth?

2006-07-03 14:19 • by Looce
80118 in reply to 80115

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

Re: Classic WTF - What is Truth?

2006-07-03 14:25 • by dept non style dep
80119 in reply to 80117
Maybe this enhancement can work:

redefine enum Bool
{
True: Bool.True,
False: Bool.False,
NoTrue: !Bool.True;
NoFalse: !Bool.False;
NoTrueOrFalse: !Bool.True or !Bool.False;
};

--Tei

Re: Classic WTF - What is Truth?

2006-07-03 14:27 • by diGriz
I would've thought it would be

enum Bool
{
    True,
    False,
    Maybe,
    Dunno,
    What
};

Re: Classic WTF - What is Truth?

2006-07-03 14:28 • by Looce
80121 in reply to 80117
ParkinT:

If you set out to fail and are successful, then what have you done?



enum Bool {
   Success,
   Failure,
   FailureToSucceed,
   SuccessInFailing
}

Captcha = truthiness :) How fitting.

Re: Classic WTF - What is Truth?

2006-07-03 14:47 • by John Smallberries
80124 in reply to 80098
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)

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?
80126 in reply to 80087
Anonymous:

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



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?
80128 in reply to 80106

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.


You win!

Re: Classic WTF - What is Truth?

2006-07-03 14:59 • by marvin_rabbit
80129 in reply to 80118
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, 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
80130 in reply to 80126
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
80131 in reply to 80126
Reeeeeaaaaaaly?:
Anonymous:

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



May I inquire: what is the significance of '42' ? Obviously a running joke I missed...




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?
80132 in reply to 80115

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


What's wrong with the grammar? It's a little bit of a run-on sentence, but it's grammatically correct.

Re: Classic WTF - What is Truth?

2006-07-03 15:03 • by diGriz
80133 in reply to 80126
Reeeeeaaaaaaly?:
Anonymous:

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



May I inquire: what is the significance of '42' ? Obviously a running joke I missed...


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?
80134 in reply to 80118
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]].'



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?
80135 in reply to 80120

diGriz:
I would've thought it would be

enum Bool
{
    True,
    False,
    Maybe,
    Dunno,
    What
};


Come on now, do it right:


WTF

Re: Classic WTF - What is Truth?

2006-07-03 15:15 • by diGriz
80137 in reply to 80135
Reeeeeaaaaaaly?:

diGriz:
I would've thought it would be

enum Bool
{
    True,
    False,
    Maybe,
    Dunno,
    What
};


Come on now, do it right:


WTF

Originally, I was thinking of Eh, but then I thought: what the hell...

Re: Classic WTF - What is Truth?

2006-07-03 15:40 • by Eq
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".)

Re: Classic WTF - What is Truth?

2006-07-03 15:43 • by Looce
80142 in reply to 80141

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

Re: Classic WTF - What is Truth?

2006-07-03 15:44 • by Looce
80143 in reply to 80142
"I tink not": think

Re: Classic WTF - What is Truth?

2006-07-03 16:16 • by richdiggins
80145 in reply to 80111
obviously, you make more than I...

time != money

Re: Classic WTF - What is Truth?

2006-07-03 16:18 • by JBL
80146 in reply to 80137
diGriz:
Reeeeeaaaaaaly?:

diGriz:
I would've thought it would be

enum Bool
{
    True,
    False,
    Maybe,
    Dunno,
    What
};


Come on now, do it right:


WTF

Originally, I was thinking of Eh, but then I thought: what the hell...
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...

WTFing Grammar Police

2006-07-03 16:46 • by lurker
80147 in reply to 80115
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 ;)


The real WTF?! here is that your grammar is only marginally better.

Re: Classic WTF - What is Truth?

2006-07-03 16:50 • by pfworks
80149 in reply to 80097
BiggBru:

What is Truth? There's only one entity that can not only define, but redefine True Truth.


The White House.


>BiggBru



Yes, Clinton did do this so well.

Re: Classic WTF - What is Truth?

2006-07-03 17:01 • by azaris
Alex Papadimoulis:


The problem with "logic" is that it makes things out to be nothing but simple dualities. Proponents of logic want us to believe that everything is true or false, black or white, yes or no, paper or plastic, etc.



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

Re: Classic WTF - What is Truth?

2006-07-03 17:15 • by triso
80151 in reply to 80106
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.
Don't fret!  With the quality of code shown here, there should be quite a few openings coming up.

Re: Classic WTF - What is Truth?

2006-07-03 17:15 • by verilog
80152 in reply to 80150
Anonymous:
Alex Papadimoulis:


The problem with "logic" is that it makes things out to be nothing but simple dualities. Proponents of logic want us to believe that everything is true or false, black or white, yes or no, paper or plastic, etc.



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


Even in computing verilog has the 'X' state (and even 'Z' - but I don't think that really counts)
« PrevPage 1 | Page 2 | Page 3Next »

Add Comment