- 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
Doesn't Microsoft has some sort of three state boolean (or even four state)? But AFAIK only two states can be used.
Admin
More frist.
Admin
Yes, MS has it in Office (http://msdn.microsoft.com/en-us/library/microsoft.office.core.msotristate.aspx) - but there are five (!) values in it, but values other than True / Flase are not supported.
I thinkt the state "msoTriStateMixed" is explainable: It will be returned when you have a group of checkboxes of mixed state - in that case the state of the group is neither true nor false. msoTriStateToggle could be the currently selected checkbox etc. But why msoCTrue?
Admin
TRWTF is that both "False" and "More False" have the same ID...? I confess to not having a particularly strong grasp on the intentions of the developers involved here -- it's going to need a debrief session and a code review. And I think an earlier-than-scheduled career appraisal is in order as well.
Admin
AFAIK, Microsoft does not have thee state booleans. Booleans are true or they are false. The one exception is a boolean that is 'unassigned' or nullable (i.e. null in a database).
Checkbox controls, however, can show a 3rd state as a greyed out appearance. But then I would argue that such checkbox controls are not representative of a boolean value :)
Admin
I guess it's one of the mostester wrong way of implementing a boolean that I ever saw.
captcha : abbas, Abbas were more true to their music.
Admin
needs more TruerFalse and WronglyTrue
Admin
Admin
Stuart is right: A tomato is a fruit http://www.oxforddictionaries.com/words/is-a-tomato-a-fruit-or-a-vegetable
Captcha: suscipere: no, it's not suspicious
Admin
You've got your binary logic, you've got your fuzzy logic, and now there's this fractal stuff.
Admin
When simulating digital circuits (which are made of analog parts), you easily find yourself in a situation where "booleans" are not so black and white, such as..
..where "possibly" signals get overwritten by the "strong" signals if in the same net, and "invalid" is caused by having both True and False in the same net.
No FILE_NOT_FOUND there yet, though..
Admin
Three state booleans (or Booleans) are in Java:
Admin
This leads itself to expansion:
Smidgeon of truth Possibly True Probably True True More True Most True Extremely True Religious Conviction
Not Entirely Sure Doubtful Seriously Doubtful False More False Most False Utterly False Political Statement
... and so on.
Is it then possible to assign a complement operation upon an ExtraBoolean such that the complement of e.g. Seriously Doubtful is Probably True? Or does one need to posit the existence of statements whose extra-boolean truthiness and falsitude are in fact independent? e.g. a statement may be Most False but at the same time Possibly True? We could build an entire field of mathematics upon this concept. Perhaps model a statement's Extra-booleanity on the complex plane: truthiness along the real axis and falsitude along the complex. Then a statement that is purely Political Statement, when multiplied by the negative square root of minus one becomes a Religious Conviction?
Might this analysis be used to get to the bottom of the relationship between US and UK during the early 2000's?
Admin
Admin
Needs SuperFileNotFoundNoReallyIveLookedEverywhere
Admin
Admin
Admin
Admin
At least this article has a working comment system, unlike the previous one where my login suddenly doesn't work and I cannot sign up because my email is already in use
Perhaps that comment system is also implemented with these new-fangled booleans, where you don't have an account, but not really not have an account.
Admin
TRUE FALSE DISCOURSE_IS_TRWTF DISCOURSE_IS_EXTRA_TRWTF FILE_NOT_FOUND
Admin
enum KnownBoolean { KNOWN_KNOWN = 0, KNOWN_UNKOWN = 1, UNKNOWN_KNOWN = 2, UNKNOWN_UNKNOWN = 3, KNOWN_NOT_FOUND = 4 };
Admin
TRWTF is Big Bang Theory's popularity. It just gets boring after a few episodes and the characters are all so very cliché. How in the world did it manage to stick around for so long?
Admin
Probably a throw back from doing COM+ interop between C++ and VB6
VB6 True = -1 C++ True = 1 VB6 / C++ False = 0
I remember writing code that looked like
if result <> false then if result = True then ' result comes from vb else ' result comes from c++ end if end if
Admin
Admin
And when you port that to .NET, what happens? What is True in VB.NET? Also can you write: if result < false then ' result comes from vb end if
or does VB complain (even though <> is a strange way to imply !=)
Admin
Penny
Admin
Needs more values. I would add DoublePlusTrue and DoublePlusUntrue.
Admin
Admin
knock knock knock
Admin
Yeah, this is true WTF. Obviously they should use enums: enum SuperBool {sbTrue,sbFalse,sbMoreTrue,sbMoreFalse}
Admin
It always amuses me that, on these forums, you come across so many people who assume that if they like something then everybody MUST like it, and that if they don't like something then everybody else MUST hate it too. No arguments.
Admin
Except it says right at the top of MsoTriState Enumeration:
of which none of the five possible values are null...Admin
Admin
Eh, not really for BASIC languages - only strange if you're used to Pascal/C conventions.
Admin
To me the only real WTF is the naming. You can't call something a "Boolean" that certainly is something different. Like we don't call 32-Bit integers "4.294.967.296-state Booleans"...
Admin
For a sextuple enum
is probably better.Admin
Captcha: luctus. Looks like we luctus out and this article's comments didn't go to discourse.
Admin
And don't forget the female boolean:
true false false, but
Admin
Admin
I like it. And as you know, my opinion is the only one that really counts. You may try and deny it, but it is an existential truth of reality.
Also - I do not like Star Trek.
Admin
We still don't have enough memory in the world for a true female boolean, since it will remember stuff you did wrong in your very first Hello World program.
Admin
So, (True + MoreTrue) == False?
Makes perfect sense.
Admin
It's like how "Yeah, right" actually means "BS"
Admin
Penny
knock knock knock
Admin
... and suppose you have a programmer moving from vb to c++. Does the female boolean in vb pull the hair of and attempt to scratch the eyes out of the female boolean in c++?
Admin
so what you're saying is that the dislike is not true, or false, but there might be a third state after all....
Admin
Admin
Five comments.
Admin
Admin
Yes, but that is only in the context of jam making and stated like that to stop people trying to say "But my jam doesn't need to conform to the relevant standards because it's not fruit based!"
Would make a good Daily Mail headline, though.