- 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
Entertaining link for the day:
http://www.radiolab.org/story/211213-sky-isnt-blue/
Admin
It was God's design to make the Bool two-state and He knew what He was doing.
Some languages let you have nullable pointers and in them you can have a sort-of three-state Bool - by treating a null pointer as an unknown value. But this is merely a natural interaction between nullable pointers and Bool, an act explicitly permitted by the Creator God.
Two states weren't enough for man. Man sought to possess the three-state Bool. In their folly, man created a True/False/File Not Found abomination! And they paid the price.
But science learneth not of caution, irregardless of what science wrought hath.
<start of inception bwaaaaa>THIS FALL
WITNESS THE HORROR
OF THE SIX-STATE-BOOL!
<cut to woman screaming>: THE BOOLEANS ARE REFILING! THE BOOLEANS ARE REFILING!
<a man quietly sobbing, sitting in an alleyway>
<we close up on him and he looks at us><his face is half-melted, his hair is transforming into wires and his eyes are tacky pixellated CGI>: H-hhelp meeee "" "" "" "" [Note: figure out how to pronounce an empty string creepily]
NO STATE IS SAFE
<cut to the "No" state of Bool sitting in his bunker>: I told them. I tried to warn them. But they wouldn't listen. Why didn't you listen? You could have prevented this. All you had to do was listen. And now, NO ONE can help them.
<suddenly calm music, generic saxon blue-eyed american dream man drives american dream car to american dream home, takes out american dream flowers for american dream wife, opens american dream door to american dream house, enters with the dreamily american gait of a person who has achieved the american dream and calls out in american dream voice>: Honey, I'm home! ... Honey? Why are you alone? Where are the kids?
<american dream wife having succumbed to the Bool disease>: YES YES FALSE UNKN "" "" (null) TRUUUUUUEEEEEE!
<fade to black, display release date>
10/01/10
BOOL.SIX
Admin
That was totally awesome, thanks!
Admin
Admin
Only if there were enough characters available to prefix "NO" with an appropriate expletive could any other option be considered viable.
Admin
VBA: Truly the MS Paint of programming languages.
Admin
Admin
Since, obviously, colors are single photons, and not a combination of the results of the wavelength of zero or more photons.
Admin
Photons have wavelengths. When shit loads of them bombard your retina, impulses are sent down the optic nerve to your visual cortex which does some kind of Magic® to translate that information into colour. Minds contain colour.
Anyway... if I find you a photon, what other particle are you going to bounce off it into your eye, in order to see it with?
Admin
Admin
Admin
"'No' is not an option! 'No' is never an option!"
Admin
NULL - the string
http://www.cmtes.com
Admin
Interesting, I'll grant you, but the evolution of concepts for colour can be found in any halfway decent introductory book on linguistics.
It was the comments appended to that page which baffled me.
Admin
No sh*t!
Admin
Admin
Dammit, this was the one I intended to give the accolade "+1 FTW", although it has been a pretty good day for amusing and thought-provoking comments.
Admin
Bool-irks!
Admin
Yeah... there is something particularly odd about attempting to sell magic spells over an internet powered by science.
Admin
TRWTF is generating Word documents, right? A truly standards-compliant program would use ODF!
Admin
The spam, or the real comments?
Admin
Like "COURAGE - the dog"
Admin
Word documents have what's called DocVariables, a bit like regular document properties (Author, Title etc) but can only be set via VBA.
So you enter the field like {IF {DOCVARIABLE "IsFrist"} = TRUE, "Moron poster", ""}, depending on the value of IsFrist you get some text or nothing.
Oh yeah, in Word TRUE = 1, while in VBA it's -1. Might be better to test on FALSE.
You open the document (in VBA, using COM or whatever), set all the DocVariables (eg Document.Variables.Add "IsFrist", False), refresh the fields to update the text, and save it.
Not that hard, although dealing with Word Fields can be a bit tedious. Can't be any worse than what you have though.
Admin
I would be laughing about this - if I hadn't learnt the depths of SQL a few months ago: SQL itself does support three "boolean" values: true, false and unknown. You if you write "a=b" you can actually get three different results creating very subtle bugs. I still don't understand why nobody told me that during studying.
E.g. if you add a check-constraint to a column like "CHECK (Column IN (1,2))", the column can actually contain 1, 2 or NULL!
Admin
Admin
BACON_NOT_FOUND
Admin
Why isn't the column marked not null?