- 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
let's not ignore the fact that they are using strings for what likely was originally meant to mimic a true/false value
Admin
Why would they set the value to "maybe"? I think "If you are looking for the group administrator, then, yes, I am this person" would be much better.
Admin
What about 'tralse' or 'frue'?
Admin
Admin
This won't work -- its completely ignoring other similarly valid boolean states, such as "probably", "perchance", "mayhaps", "kinda", and "duh".
-dZ.
Admin
Yes, no maybe, it's all just noyes to me! nyuk-nyuk.
Admin
<FONT style="BACKGROUND-COLOR: #d6e0e6" size=4>OMG since a string was used for the to store a boolean why not use session.isAdmin to describe the actual role</FONT>
<FONT style="BACKGROUND-COLOR: #d6e0e6" size=4>ie:</FONT>
Admin
I wrote a system that handles multivariate truth values.
http://www.thedailywtf.com/forums/36067/ShowPost.aspx
Admin
<FONT face=Arial><USELESSRANT></FONT>
<FONT face=Arial>I think they assign a numeric value to "true" and "false" to accoung for the "maybe" and also "perhaps". In other words, in some languages true has the numeric value of 1 and false the value of 0. Well, let "perhaps" be any value between .25 - .499999 and let "maybe" be between .5000001 - .999999. This way, they can have .5 available for "Sure, but I'll need to check."</FONT>
<FONT face=Arial></USELESSRANT></FONT>
Admin
Don't forget "supposedly", "allegedly", "aparently", and of course "no doubt!"
Admin
It kills me when people make the same jokes as were in the original post
Admin
It seems like a joke.
As WTFs go, it's really not so bad :)
Admin
What about all the foriegn languages? I don't see any ability to handle yes/no in french, Hebrew, Aramic, Greek, Russian, or Korean - just to name a few.
The languages that don't use the latin alphabit, particularly ones that are right to left ought to be handled. Mostly because I'd like to see the WTF type code this group would come up with to deal with it.
This would be okay code if it used an enumeration, and had a comment on why someone would be a maybe administrator. Yes, everyplace where you are checking for administrator needs that comment. Otherwise the first fresh from school programmer with a clue will start removing them and breaking the program. (More experienced programers have of coursed learned to laugh at code like this, but let it go until they can come up with a redesign that solves all the problems)
Admin
Oh yeah, well here's to you and a quick death:
"When I was in school, I never thought I'd be sitting in a conference room, having a discussion on whether I should use "possibly", "perhaps", or "sometimes"...!"
dZ.
Admin
<FONT size=5>Sounds like this was coded for a pentium with the floating point error</FONT>
Admin
Because an administrator is an identity it's OK to be unsure of.
Admin
Where's the Anthrax version?
<<FONT size=+0>cfif</FONT> session.isAdmin <FONT size=+0>EQ</FONT> <FONT size=+0>"NOT!"</FONT>>
(mosh)
Admin
If you're feeling Deutsch, there's the wonderfully compact "jein"
Admin
I'm not sure whether this has any impact but apparently one cannot be a site administrator and a geoup administrator at the same time. Maybe a site administrator is implicitly a group administrator.
Admin
That sounds like a real bike shed discussion. Who cares what you pick when all the options are stupid?
Admin
Mayhaps the Group administrator's name is "May Brown" but everyone calls her May B.
Admin
I'd hate to work somewhere where people are "supposedly" or "apparently" administrators :(
Admin
Well, if the administrators at your place of work are in fact administrators, take them out for a beer and enjoy their company. Some of us are not that lucky, and are unfortunately stuck with those that "supposedly", "apparently", or "think they" are. :(
-dZ.
Admin
"why don't you just tell me the name of the user you want to be..."
Admin
I think it would be even worse if you were "supposedly" paid every two weeks.
Admin
That reminds me of a Three Stooges exchange in the short film, "Gem of a Jam:"
Curly: "I think we have a case of spectus on the floorus."
Moe: "Then we should use sultathius soap."
Larry: "I wouldn't say yes, but I wouldn't say no."
Curly: "Would you say maybe?"
Larry: "I might."
Admin
Sweet, an Anthrax reference! That takes me back to high school. "What is it?....caught.... in... a mosh!"
[6]
Admin
but.... I kind of like it!!! c'mon compaired to some of the code we've seen.... i'm sure the developer wrote it with a sense of humour! Perhaps we've discovered a new slot for Saterday Night Live![8-|]
Admin
I disagree. "Jein" does not mean somthing like "perhaps" or "maybe"; it rather means "partially yes" or "the answer depends on your point of view".
Admin
Finally someone has found use for fuzzy logic. I mean, the world is not black / white either, so why should booleans be?
Admin
Don't forget sometimes, often, usually, irrelevant, and perhaps. This design in ridiculous.
Admin
Wow. I never thought of using a software implementation of the Magic 8-Ball as my security mechanism...
Admin
Will I be able to modify this database?
Cannot predict now.
Dammit. Server must be down again.
Admin
It isn't a WTF... they were using Fuzzy Logic!
Admin
I disagree again. "Jein" in my experience is used to say "I can't, for the life of me, decide."
Admin
Marge: "Does that ear-ring mean you're a pirate?"
Pirate: "Kinda."
Admin
We actually did some work on that kind of logic in an AI class I took. Maybe that's why no one has gotten AI to work yet...
Admin
Now this is a definite maybe .... this even handles quantum computing - with the value of maybe only becoming known when tested ....
Admin
And I have to disagree with you. "Jein" means "yes and no". This is not the same as "maybe", and it doesn't have anything to do with decisions.
Example: "Do you like the new project?" - "Yes and no. I like the new techniques, but I have to travel a lot."
Believe me, I'm a native speaker :-)
Admin
Na, was ist denn nun, du Schiffmeister, kommst Du mit, Du Kollegenschwein?
Admin
Wohin? Zum LinuxTag? Natürlich werde ich da sein :-)
(Why do you call me "Kollegenschwein"?)
Admin
Hell I'd really like to be there as well!
That was a quote taken from "Fettes Brot - Jein" :-)
Admin
Oh, I didn't know that. Well, I know "Fettes Brot", of course, but I know just a few songs of them... even though I'm nordisch by nature :-)
Admin
Hey, that was nearly a Haiku!
Admin
LMAO! That insanely funny. Good one... [:D]
Admin
Wow. Just plug the text into Babelfish... and it still doesn't make sense! Isn't technology wonderful?
--RA, whose father from Wuppertal taught me nothing other than "Schwebebahn."
Admin
Request you update Leo, sir.
Admin
Because then you'd have to change the existing code that expects "yes" and "no".
Admin
Maybe they were dealing with some form of quantum data? The state is on, off, and somewhere inbetween all at the same time :)
Anyway this reeks of a code that started off somewhat logical and then sadly got patched to do something else turning the code and logic into a total mess. I've had this happen to a few of my projects before.
Admin
Okay, I'll give it a try:
Note:
(1) "Schiffmeister" is the stage name of a member of the German hiphop band "Fettes Brot" (fat bread). He picked it from the computer game "Pirates!".
(2) "LinuxTag" is an exhibition almost completely about Linux, which takes place in Karlsruhe, Germany, this year from 06/22 to 06/25. Even Microsoft has got a booth... to entertain the geeks :-)