- Feature Articles
- CodeSOD
-
Error'd
- Most Recent Articles
- Stop Poking Me!
- Operation Erred Successfully
- A Dark Turn
- Nothing Doing
- Home By Another Way
- Coast Star
- Forsooth
- Epic
- 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
This is to avoid magic strings! They are the bane of our existence!
Admin
Cue FILE_NOT_FOUND joke in 3..2..1..
Admin
They missed FileNotFoundException surley?
Admin
Silly, you need to move that into a table to make it more easily extensible.
Admin
Exacty! You never know when business people start demanding a Maybe option.
Admin
I've worked on Wall Street for more than 20 years, and every single trading system I've encountered had a certain sense of randomness depending upon in what order what prices from which exchanges/ECN's were checked against the others. "Maybe" is a way of life!
Admin
Feh, they were just planning ahead to ensure that in the future they could support an additional bazillion degrees of surety between Yes and No.
Of course, they've screwed the pooch by not setting Yes as the max BIGINT value...
Admin
Actually I had to do something like that...there were three possible choices and my manager demanded they be in a table...
ID | Text 1 | Yes 2 | No 3 | Unavailable
sigh
Admin
4 | File Not Found
Admin
Files on embedded systems! Bert Glanstrom! Wooden Table!
Admin
Admin
Enough? You might be in Europe for all I know, but we're Americans here. There's no such word as "enough"!
5 | Haven't Got Around To Looking Yet 6 | It's Around Here Somewhere 7 | Did You Ask Jane? She Had It A While Ago
Admin
8|NO 9|no 10|yes 11|yEs
Admin
12|On Alternate Tuesdays 13|Very Yes 14|Very No 15|Very Unavailable
Admin
16|Hell No 17|Huh?
Admin
16|A little from column A, a little from column B 17|NULL 18|All of the above
Admin
100 Outlook Murky, Try Again 101 Signs Point To Yes -382 We Got Some Bad Acid Here FNRT AHHHH SPIDERS
Admin
42 Depends on what the definition of 'is' is 9999 Dude, what was the question?
Admin
sorry guys, fact is stranger than fiction:
http://msdn.microsoft.com/en-us/library/aa432714(office.12).aspx
Admin
that should be 420 | dude, what was the question?
Admin
Irish! Girl!
Admin
I could have used that...and I love how three of them "not supported"
Admin
Brillant?
Admin
19 | Yes, by statute, but woe betide you if you actually ask for it!
Admin
Admin
22| This option intentionally left blank
Admin
Easily extensible for i18n support:
19|Oui 20|Non 21|Sí 22|No 23|Ja 24|Nein
Admin
"To use the MsoTriState enumerations in a WSF job..."
I think they misspelled "WTF".
Admin
Yes? What do you want?
Admin
MOAR XML! And VB, and, and... moar of the phps too...
I don't see the problem with this. Seems very Enterprise-ey (TM) to me.
Admin
or a "Yes and No" option or a "Yes Yes" option: I mean the choices are practically endless
Admin
You don't understand! Yes and No are aliases for binary digits. Thus: Yes+Yes=YesNo YesNoYesNo-YesYesNo=YesNoNo YesYesYes*YesNoYes=YesNoNoYesYes YesYesYesYesNoNoYesYes+YesNoYesNoYesNoYesYesNo=YesYesYesYesNoNoYesNoNoYes And so on, up to 2^63 or so.
Admin
Actually to get into this seriously, for reporting purposes where you want to display a string instead of a number, this is probably the fastest way (with large recordsets).
Although I do agree that a fixed table is even more better for that, but it's quicker to join this (virtual) table then use case when's in the query. A lot of case when's make the query slow.
Admin
Or you could add another column for localization. (EN,En,eN,en,FR,Fr,fR,fr, ....)
Admin
I have Xed your Y, pray I don't ...etc.
AHHHH!!! Seeing all this together made a horrible image run through my head. Bert Glasnstrom with Irish Girl being "brilant" on a wooden table. Excuse me while I go bleach my brain.
Admin
Wasn't this what happened in the movie "Office Space"?
Admin
You have brain bleach?! I could've used that every time I heard Sarah Palin speaking; instead, I would repeatedly smash my head into the corner of a wall until I found myself waking up on a gurney in an ER... Ahh, memories...
Where was I going with this again?
Admin
Excellent. A tri-state boolean with five possible values, two of which are actually supported. I think we have a winner.
Admin
25: Actually No, but to save face, Yes
Admin
Admin
To best ensure that the future will remain flexible, while still retaining usability, the schema needs to be extended with a BooleanValue field as follows:
Captcha: enim - an enum which shouldn't be.
Admin
Admin
69|No, but if you act like a jerk and look like a drunk biker, I really mean Yes.
70|Yes, I'll go out with you... someday... but tonight I have to organize my spice cabinet. Ask me again sometime. Really!
Admin
It's for the embedded Windows CE drivers inside the Holy Hand Grenade of Antioch.
Admin
Admin
What. The. Fuck.
Admin
As there are 5 possible values, shouldn't it be a "pentastate boolean"?
Admin
/nice... the captcha is decet -> deceipt
Admin
No, a pentastate boolean would have seven possible values.
Admin
No, a pentastate boolean has seven possible values.