- 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
Yup we either treat null as a false, or if we really need to show a difference use a radio box with yes/no and have neither selected.
Admin
Well, we have you beat on that one, pizza is a vegetable!
Admin
well, logically assume the following. Vegetables grow on trees. cacao beens grow on trees.
therefore chocolate is a vegetable
Admin
Admin
I've never actually watched an episode, but I do get sick of people telling me that I must watch it.
Also, Penny really isn't that hot. She's okay.
Admin
I'm still waiting for certain other countries to declare half a bottle of wine as an equivalent to the recommended daily amount of fruit, though...
Admin
Admin
Plainly wrong. Vegetables don't grow on trees. (Depending on the definition of vegetables we may have "none grow on trees" or "not all grow on trees").
The closest I can make is: Vegetables grow on plants. cacao beans grow on trees. trees are plants. chocolate is made from cacao beans.
therefore chocolate is made from vegetables
Admin
Now, let's see. Where did I put that fuzzy logic class I wrote? One byte, with values 0 - 200 should be sufficient. 100 is a definite maybe. 175 is almost certainly true. 50 is mostly false. That should do it.
Admin
Admin
Admin
Admin
SQL has a ternary logic, TRUE, FALSE and NULL (unknown).
https://en.wikipedia.org/wiki/Ternary_logic
Admin
Quantum
Boolean state is indeterminate until observed, at which point it randomly becomes either true or false.
Admin
I always use 1's complement for my fuzzy logic. +1 is True, -1 is False, +0 is "nominally True but actually False" and -0 is "nominally False but actually True". The +/- 0 values are most useful for detecting the class of error conditions which are usually commented with
Admin
Admin
In C# you can use nullable boolean.
Admin
Admin
Admin
Admin
Double plus wrong
Admin
That's just Jeff Ate-wood showing why his "civil" comment system is needed.
Admin
And the US government has tried to declare Ketchup and relish to be vegetables, and has taken the issue of Tomatoes being fruits all the way to the Supreme Court.
Admin
I do not know about Microsoft, but a 4 value logic algebra (true, false, i do not know, what i know is inconsistent) it is still a boolean algebra, and used in math (and computer languages formal semantic).
OK, this is not funny :-<
Admin
I love how we make up groups based on common traits and then argue over which common traits are more important.
Like, a tomato is a vegetable because it's not sweet, or some goofy reason why people don't know it's a fruit.
It's the most fun to watch how they keep gerrymandering classifications of autism. No it's the way they blink when they don't look at you... that's non-blinkitismistic!!!
Another favorite is how we keep changing words every generation. First fool, then retard, then mentally challenged, then ...
People and their words.
I'm going back to grunting for a while.
Ooh - uug - ghu
Admin
You just need to redefine right/wrong as a distance function.
Then 'tomato is a vegetable' gets a value of -1, 'tomato is a little-league baseball' gets -100, and "tomato is a suspension bridge" gets a value of -1e6.
Admin
Admin
You just don't understand. Big Bang Theory is NOT a comedy, it IS a DOCUMENTARY. I have relatives that work at JPL (part of CalTech), and there are LOTS of Sheldon's there that have absolutely NO social skills. They are stuck in their theory and buried so deep it is hard to get out.
Admin
CorrectPositive CorrectNegative FalsePositive FalseNegative
yep, four.
Admin
I have issues describing how bad that show is since it was so bad, that I have repressed all memories of what I saw.
Admin
Fie on Boolean's "two value system"; we can have billions on billions on billions of extendedBoolean values. Just for starters:
True False AbsolutelyTrue AbsolutelyFalse ProbablyTrue ProbablyFalse WishyWashy PossiblyTrue PossiblyFalse SortOfKindOfTrue SortOfKindOfFalse TrulyFalse FalselyTrue TrulyTrue FalselyFalse MaybeTrue MaybeFalse MaybeNotTrue MaybeNotFalse FileFound FileNotFound FileAbsolutelyFound FileAbsolutelyNotFound FileProbablyFound FileProbablyNotFound FilePossiblyFound FilePossiblyNotFound FileSortOfKindOfFound FileSortOfKindOfNotFound FileTrulyFound FileTrulyNotFound FileFalselyFound FileFalselyNotFound TrueShrug FalseShrug
Admin
No, this requires Steve the Cynic's GAU-8.
Admin
Aren't those the same?
Admin
SQL...
Admin
+1
But then, the Universe and reality itself is considered by some merely an illusion. If that is true (Religious Conviction for some), then reality itself is a Political Statement (which I find to be hilarious).
Admin
I actually had to create a class to try to emmulate a boolean as close as possible but to allow 4 states
Essentially we had a lot of properties to describe what the item is, and in some cases it could apply to ones that meet the condition or don't meet the condition equally.
It actually worked pretty well after I implemented it, except that Microsoft's compiler optimizations assumed that if something is true, then it is not false. In other words, depending on the test, it would reverse the check so that even though wou were asking essentially "Is it true" it could optimize in and say "Is is not false"... kind of ruined it. Still implemented it, but you have to test for it with equality operators instead of just using it as a boolean.
Admin
You could step on a special scale, or have a cetified evaluator give you you current measurement.
Scale worked something like this, based on a measurement of a "Billy Grahm".
1,000 Bg - Bishop (1K Billy Grahms) 1,000,000 Bg - Cardinal 1,000,000,000 Bg - Pope
We don't really discuss the names on the scale for those with a negative Billy Grahm rating.
Admin
Also, Discourse must die!!
Admin
I want a Lebowski Boolean
0 - FALSE 1 - TRUE 2 - NOT FALSE BUT YOU'RE JUST AN ASSHOLE
Admin
3 - THAT'S JUST LIKE, YOUR OPINION MAN 4 - SHUT THE F*** UP, DONNY
Admin
Admin
Admin
Admin
If you purchase that tomato from a grocery store in winter it may be functionally equivalent (and equivalent in taste) to a little league baseball. So maybe -2.
Admin
and several strengths of each state, depending on which language you are using. The unknown state can occur for any of several reasons: A variable is uninitialized, multiple gates trying to drive a net to different values, as graybeard said, or an unknown (for any reason) feeding into downstream boolean logic. Z is essentially the weakest possible state of unknown, but it is special in that it is so weak it cannot really have a true or false value.
Admin
Admin
Admin
An element of algebra isn't really a "boolean [value]" though. I would think a boolean value is commonly interpreted to be an element of {0, 1}.
Admin
Grandma would love it
Admin
I just noticed that they forgot the most important truthiness value! WORSE_THAN_FAILURE And of course, the negated counterpart: BETTER_THAN_FAILURE