Comment On What Is Truth?

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. Thankfully, there are some among us, like Mark Harrison's colleague, who are not afraid to stand up to these logic advocates and shout "no, I will not succumb to your false dichotomies!" Today, I think we all should salute those few brave people ... [expand full text]
« PrevPage 1 | Page 2 | Page 3 | Page 4Next »

Re: What Is Truth?

2005-10-24 13:06 • by Ribert

What's wrong with that piece of code? isn't that standard C++?


 

Re: What Is Truth?

2005-10-24 13:07 • by George Jempty
Seriously, are you not familiar with filenotfoundian algebra?

Re: What Is Truth?

2005-10-24 13:07 • by Gene Wirchenko
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. Thankfully, there are some
among us, like Mark Harrison's colleague, who are not afraid to stand up to these logic advocates and shout "no, I will not succumb to your false dichotomies!" Today, I think we all should salute those few brave people ...


enum Bool 
{
True,
False,
FileNotFound
};




"... I will succumb to my own false dichotomies!"



You should adjust that third value to "InMyOtherJacket".  It makes the output easier:

     The answer is _____.



Sincerely,



Gene Wirchenko



Re: What Is Truth?

2005-10-24 13:08 • by DisturbedSaint
Alex Papadimoulis:

 Proponents of logic want us to believe that everything is true or false, black or white, yes or no, paper or plastic, etc.


Obviously there are never 2 choices...always 3.

True, False, or FileNotFound
black, white, or apple
yes, no, or car
paper, plastic, or shoe

-ds

Re: What Is Truth?

2005-10-24 13:12 • by Wang
47849 in reply to 47848
or indeed true, false or null...

Re: What Is Truth?

2005-10-24 13:12 • by fregas
47850 in reply to 47848

All my apps have the following enum:


public enum MostlyBool
{
  True,
  False,
  KindaSortaNotReally
}

Re: What Is Truth?

2005-10-24 13:18 • by Meddler
This guy and his fuzzy logic are way too advanced for my limited mind.

Re: What Is Truth?

2005-10-24 13:21 • by Enric Naval

In one app of mine, to see if the user can edit fields in a form:




public enum Editable {
YES,
NO,
DISABLED,
READONLY;
}


The last three values mean "no" :)

Re: What Is Truth?

2005-10-24 13:21 • by Ytram

 

Alex Papadimalanotgonnaworkhereanymore:
no, I will not succumb to your false dichotomies!


No, I will not succumb to your FileNotFound dichotomies!


Re: What Is Truth?

2005-10-24 13:22 • by tmountjr
Const True as Int = -1
Const False as Int = 0
Const Maybe as Int = 0.5


Re: What Is Truth?

2005-10-24 13:27 • by Matt
47857 in reply to 47856
...and later on down the code there is the ubiquitous IsTrue() function.

Re: What Is Truth?

2005-10-24 13:32 • by vhawk
We all know this is wrong ...



Should have been



enum Bool 
{
True,
False,
DefiniteMaybe
};


Re: What Is Truth?

2005-10-24 13:33 • by christoofar
47859 in reply to 47857
I'm surrounded by code written by morons.  Complete... utter...
morons.    Just... oh fu** it nevermind.  
Just look:



    /// <remarks/>

    [System.Xml.Serialization.XmlTypeAttribute(Namespace="<snip>")]

    public enum BoolEnum

    {

        /// <remarks/>

        @false,



        /// <remarks/>

        @true,

   

   

    }

Re: What Is Truth?

2005-10-24 13:37 • by christoofar
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. Thankfully, there are some among us, like Mark Harrison's colleague, who are not afraid to stand up to these logic advocates and shout "no, I will not succumb to your false dichotomies!" Today, I think we all should salute those few brave people ...



enum Bool 
{
True,
False,
FileNotFound
};









The problem with opponents of basic modal logic, of course,
is that proponents of ulterior transmogrified logic systems must use modal
logic to base their preposterous arguments… arguments which appear to resemble
something, when consumed, tastes entirely unlike tea.






Re: What Is Truth?

2005-10-24 13:42 • by Hexar
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. Thankfully, there are some among us, like Mark Harrison's colleague, who are not afraid to stand up to these logic advocates and shout "no, I will not succumb to your false dichotomies!" Today, I think we all should salute those few brave people ...


enum Bool 

{
True,
False,
FileNotFound
};


The more subtle WTF is that, by default, True is 0 and False is 1.  Which is completely bass-ackwards.

Re: What Is Truth?

2005-10-24 13:43 • by emptyset
Alex Papadimoulis:


enum Bool 

{
True,
False,
FileNotFound
};


wait, wouldn't this assign:


True <- 0
False <- 1
FileNotFound <- 2


in C/C++?  what language is this?

Re: What Is Truth?

2005-10-24 13:46 • by emptyset
47863 in reply to 47860

christoofar:
The problem with opponents of basic modal logic, of course, is that proponents of ulterior transmogrified logic systems must use modal logic to base their preposterous arguments… arguments which appear to resemble something, when consumed, tastes entirely unlike tea.


i would like to transmogrify into a tiger.

Re: What Is Truth?

2005-10-24 13:47 • by siege
My favorite part about this is the following:



int main() {


  if(True) {

    printf("True is true\n");

  }

  if(False) {

    printf("False is true\n");

  }

  if(FileNotFound) {

    printf("FileNotFound is true\n");

  }

}

Re: What Is Truth?

2005-10-24 13:54 • by christoofar
47865 in reply to 47862
emptyset:
Alex Papadimoulis:


enum Bool 
{
True,
False,
FileNotFound
};


wait, wouldn't this assign:


True <- 0
False <- 1
FileNotFound <- 2


in C/C++?  what language is this?





I was wondering the same thing, since Bool is a reserved word in
Java/C#...  they superceded the Bool class?!?!! wtf?!?!!  Now
you have System.Boolean and WTF.Bool.    How
con-vieeeeeeeeeeean-yant.

Re: What Is Truth?

2005-10-24 13:57 • by Autobot
47866 in reply to 47863
emptyset:
i would like to transmogrify into a tiger.


Transform!



More than meets the eye!

Re: What Is Truth?

2005-10-24 14:03 • by anon
Aha!



In UNIX, everything is a file!

memory, devices, process info, PCI bus... and, uh, files (duh!)



So, this makes perfect' sense!















': enum {perfect = 0};





Re: What Is Truth?

2005-10-24 14:10 • by AndrewVos

idiot!


True, False, HowTheHellDidThisHappen

Re: What Is Truth?

2005-10-24 14:10 • by jnz
47869 in reply to 47848
DisturbedSaint:

Obviously there are never 2 choices...always 3.

True, False, or FileNotFound
black, white, or apple
yes, no, or car
paper, plastic, or shoe


North, South, or Dennis

Re: What Is Truth?

2005-10-24 14:18 • by George Bezel
47870 in reply to 47854
Enric Naval:

In one app of mine, to see if the user can edit fields in a form:




public enum Editable {
YES,
NO,
DISABLED,
READONLY;
}


The last three values mean "no" :)

Re: What Is Truth?

2005-10-24 14:20 • by kipthegreat
47871 in reply to 47865
christoofar:
emptyset:
Alex Papadimoulis:


enum Bool 
{
True,
False,
FileNotFound
};


wait, wouldn't this assign:


True <- 0
False <- 1
FileNotFound <- 2


in C/C++?  what language is this?





I was wondering the same thing, since Bool is a reserved word in
Java/C#...  they superceded the Bool class?!?!! wtf?!?!!  Now
you have System.Boolean and WTF.Bool.    How
con-vieeeeeeeeeeean-yant.




boolean, not Bool, is reserved in Java as a primitive type, and there's
also a Boolean class. I don't know about C#.  In C/C++ it depends
on compiler if it's even supported, but for every compiler I've worked
with it is bool, not Bool, that is reserved.



Sincerely,



I'm cooler than Gene W-name

Re: What Is Truth?

2005-10-24 14:25 • by griveroa
May be part of his brain is in a quantum universe... He's trying to add another dimension to our world !!!

Re: What Is Truth?

2005-10-24 14:27 • by Kiss me, I'm Polish
47873 in reply to 47867
And in Soviet Russia, the file is you!

Re: What Is Truth?

2005-10-24 14:32 • by Henk
47874 in reply to 47855
Er, wouldn't that be a trichotomy ?

Re: What Is Truth?

2005-10-24 14:34 • by Henk
47875 in reply to 47855
Ytram:

 

Alex Papadimalanotgonnaworkhereanymore:
no, I will not succumb to your false dichotomies!


No, I will not succumb to your FileNotFound dichotomies!





Er, wouldn't that be a trichotomy?
(One of these days I'm going to get quoting right)

Re: What Is Truth?

2005-10-24 14:35 • by Henk
47876 in reply to 47875
OK, I give up. What about HTML?

Re: What Is Truth?

2005-10-24 14:49 • by Enric Naval
47877 in reply to 47876
Anonymous:
OK, I give up. What about HTML?


Below the writing area, there are two options: "design" and "HTML". Select the "HTML" option. Use a browser that can render the options, like Internet Explorer. Remember to use &amp; for &, &gt; for >, &lt; for <, etc. and <p> tags for nice paragraphs and <pre> tags for code.

Re: What Is Truth?

2005-10-24 14:56 • by Andir
47878 in reply to 47877
0, 1, and sqr(-1)?

Re: What Is Truth?

2005-10-24 14:57 • by masklinn
47879 in reply to 47877
Enric Naval:
Anonymous:
OK, I give up. What about HTML?


Below the writing area, there are two options: "design" and "HTML".
Select the "HTML" option. Use a browser that can render the options,
like Internet Explorer. Remember to use & for &, > for >,
< for <, etc. and

tags for nice paragraphs and

 tags for code.


Actually, you should use <blockquote><pre> </pre><blockquote> for blocks of code.


And <code> for inline code, such as variables of one-liners.


BTW, Firefox handles that just fine.

Re: What Is Truth?

2005-10-24 14:58 • by masklinn
47880 in reply to 47879
masklinn:
Enric Naval:
Anonymous:
OK, I give up. What about HTML?


Below the writing area, there are two options: "design" and "HTML".
Select the "HTML" option. Use a browser that can render the options,
like Internet Explorer. Remember to use & for &, > for >,
< for <, etc. and

tags for nice paragraphs and

 tags for code.


Actually, you should use

 
for blocks of code.


And for inline code, such as variables of one-liners.


BTW, Firefox handles that just fine.


Bah, forgot to close the blockquote, and s/of/or.

Sql Developers know what this should be

2005-10-24 15:00 • by RevMike
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. Thankfully, there are some
among us, like Mark Harrison's colleague, who are not afraid to stand up to these logic advocates and shout "no, I will not succumb to your false dichotomies!" Today, I think we all should salute those few brave people ...


enum Bool 
{
True,
False,
FileNotFound
};




Us SQL developers know this should really be

enum Bool 
{
True,
False,
NULL
};



Re: What Is Truth?

2005-10-24 15:06 • by Apoch
47883 in reply to 47860
christoofar:



The problem with opponents of basic modal logic, of course, is that proponents of ulterior transmogrified logic systems must use modal logic to base their preposterous arguments… arguments which appear to resemble something, when consumed, tastes entirely unlike tea.


No no - it's almost, but not quite, entirely unlike tea.


Thus spake the Holy Prophet of Douglas Adams.

Re: What Is Truth?

2005-10-24 15:07 • by ???
47884 in reply to 47856
tmountjr:
Const True as Int = -1
Const False as Int = 0
Const Maybe as Int = 0.5




0.5 as an Integer..... very interesting! ^o)

Re: Sql Developers know what this should be

2005-10-24 15:27 • by WTFer
47885 in reply to 47882
RevMike:
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. Thankfully, there are some
among us, like Mark Harrison's colleague, who are not afraid to stand up to these logic advocates and shout "no, I will not succumb to your false dichotomies!" Today, I think we all should salute those few brave people ...


enum Bool 
{
True,
False,
FileNotFound
};




Us SQL developers know this should really be

enum Bool 
{
True,
False,
NULL
};




Us Electronic Engineers now that it should really be



Re: Sql Developers know what this should be

2005-10-24 15:29 • by WTFer
47886 in reply to 47885
That would be:

enum Bool{

    VCC,

    GND,

    Z

}

Re: What Is Truth?

2005-10-24 15:30 • by Paul O
47887 in reply to 47878
We have languages wherein "everything" non-zero is "true" ... at least
this one uses an enum to limit the choices.  Since the language in
this WTF seems a little ambiguous (C/C++? Java?), let's at least hope
it's a type enforcing language.



It does explain some of the stranger "file not found" messages I get
:)  Have we already forgotten "An unnamed file was not found"?



[Any other 'unregistered' users noting the captcha verification misses the first word sometimes?]

Re: What Is Truth?

2005-10-24 15:42 • by travisowens

In the fashion of fuzzy logic, I say he updates this code to be "True", "False" and "Maybe".

Re: What Is Truth?

2005-10-24 15:47 • by travisowens
47889 in reply to 47861

Anonymous:
The more subtle WTF is that, by default, True is 0 and False is 1.  Which is completely bass-ackwards.
Silly me, I was in such a hurry to comment I didn't know that.  That's as big as a WTF as the fact he has a 3 value boolean!

Re: What Is Truth?

2005-10-24 15:49 • by James Schend
Whose turn is it to explain why this isn't all that bad after-all?

Re: What Is Truth?

2005-10-24 16:00 • by johnl
47891 in reply to 47890
What about "maybe"?

Re: What Is Truth?

2005-10-24 16:02 • by johnl
47892 in reply to 47891
"I will not succumb to your FileNotFound dichotomies!"

Re: What Is Truth?

2005-10-24 16:22 • by jvancil
47893 in reply to 47850
fregas:

All my apps have the following enum:


public enum MostlyBool
{
  True,
  False,
  KindaSortaNotReally
}



But... what does IsTrue(KindaSortaNotReally) return? We need another level of the enum for... "Probably"

Re: What Is Truth?

2005-10-24 16:23 • by kipthegreat
47894 in reply to 47890
Anonymous:
Whose turn is it to explain why this isn't all that bad after-all?




I'll take a stab.  This looks like C++.  Maybe he's used to
coding with HResults.  If that's the case, he's used to 0 meaning
"good", negative meaning "error", and positive meaning "warning". 
Maybe this Bool type is supposed to be an HResult.





It's interesting that he could define IsTrue something like this:

bool IsTrue(Bool b) {  return !b; }





Re: What Is Truth?

2005-10-24 16:25 • by dubwai

I don't think people are seeing the value in this.


In standard logic, the statement "all deep-sea dwelling elephants can fly" is true.  With this addition, the answer is now FileNotFound; a much more satisfying answer.

Re: What Is Truth?

2005-10-24 16:26 • by johnl
47896 in reply to 47894
In that case it's a WTF for calling it a bool.

Re: What Is Truth?

2005-10-24 16:42 • by rikkus
47897 in reply to 47861
Anonymous:

The more subtle WTF is that, by default, True is 0 and False is 1.  Which is completely bass-ackwards.


UNIX would beg to differ:




> [ -d / ]; echo $?
0
> [ -f / ]; echo $?
1

« PrevPage 1 | Page 2 | Page 3 | Page 4Next »

Add Comment