Comment On Yes ... I mean No ... errr, Maybe. Perhaps?

I'll bet that when you were in school, you never thought you'd be sitting in a conference room, having a discussion on whether you should use "possibly", "perhaps", or "sometimes" as the fourth value for a yes/no flag variable. In fact, I'll bet that had you known you would have been in such a situation, you would have gone into accounting instead. No less, this is where Josh was recently, when his team was trying to figure out how to add another role to a large ColdFusion based application in which changing the architecture was not an option ... [expand full text]
« PrevPage 1 | Page 2Next »

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 13:41 • by Matt B
let's not ignore the fact that they are using strings for what likely was originally meant to mimic a true/false value

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 13:47 • by Amazinderek
36644 in reply to 36643
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.

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 13:47 • by anonymous
What about 'tralse' or 'frue'?

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 13:49 • by Justin Sippel
36646 in reply to 36645
Anonymous:
What about 'tralse' or 'frue'?
I prefer "Nes" and "Yo".

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 13:55 • by DZ-Jay
Alex Papadimoulis:
<a class="user">Logged in as:a> #session.fullname# 
<cfif session.isAdmin EQ "yes">
(Site Administrator)
<cfelseif session.isAdmin EQ "maybe">
(Group Administrator)
<cfelse>
(Member)
cfif>





This won't work -- its completely ignoring other similarly valid
boolean states, such as "probably", "perchance", "mayhaps", "kinda",
and "duh".



    -dZ.

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 13:56 • by Charles Nadolski
36648 in reply to 36646
Anonymous:
Anonymous:
What about 'tralse' or 'frue'?
I prefer "Nes" and "Yo".




Yes, no maybe, it's all just noyes to me! nyuk-nyuk.

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 13:56 • by Kodi

OMG  since a string was used for the to store a boolean why not use session.isAdmin to describe the actual role


ie:

<a class="user">Logged in as:a> #session.fullname# 

<cfif session.isAdmin EQ "yes">
(Site Administrator)
<cfelseif session.isAdmin EQ "grpadmin">
(Group Administrator)
<cfelseif session.isAdmin EQ "wft_creator">
  (Bad Programmer)
<cfelseif session.isAdmin EQ "wtf_boss">
(Fire Bad Programmer)
<cfelse>
(Member)
cfif
>

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 13:58 • by rogthefrog

I wrote a system that handles multivariate truth values.


http://www.thedailywtf.com/forums/36067/ShowPost.aspx


 

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 14:02 • by Javier G. Lozano


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."


Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 14:05 • by Jeff S
36652 in reply to 36647
DZ-Jay:
Alex Papadimoulis:
<a class="user">Logged in as:a> #session.fullname# 
<cfif session.isAdmin EQ "yes">
(Site Administrator)
<cfelseif session.isAdmin EQ "maybe">
(Group Administrator)
<cfelse>
(Member)
cfif>




This won't work -- its completely ignoring other similarly valid boolean states, such as "probably", "perchance", "mayhaps", "kinda", and "duh".

    -dZ.


Don't forget "supposedly", "allegedly", "aparently", and of course "no doubt!"

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 14:06 • by Matt B
36653 in reply to 36647
DZ-Jay:
This won't work -- its completely ignoring other similarly valid
boolean states, such as "probably", "perchance", "mayhaps", "kinda",
and "duh".



    -dZ.




It kills me when people make the same jokes as were in the original post

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 14:06 • by podperson
It seems like a joke.



As WTFs go, it's really not so bad :)

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 14:14 • by Hank Miller
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)

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 14:16 • by DZ-Jay
36657 in reply to 36653
Matt B:
DZ-Jay:
This won't work -- its completely ignoring other similarly valid
boolean states, such as "probably", "perchance", "mayhaps", "kinda",
and "duh".



    -dZ.




It kills me when people make the same jokes as were in the original post




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.



Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 14:28 • by Kodi
36658 in reply to 36651
Anonymous:


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."




Sounds like this was coded for a pentium with the floating point error

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 14:40 • by Sean
Because an administrator is an identity it's OK to be unsure of.

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 14:44 • by rogthefrog

Where's the Anthrax version?


<cfif session.isAdmin EQ "NOT!">
  (mosh)

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 14:49 • by smitty_one_each
36663 in reply to 36646

Anonymous:
Anonymous:
What about 'tralse' or 'frue'?
I prefer "Nes" and "Yo".


If you're feeling Deutsch, there's the wonderfully compact "jein"

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 15:14 • by dubwai
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.

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 15:21 • by loneprogrammer
Alex Papadimoulis:
I'll bet that when you were in school,
you never thought you'd be sitting in a conference room, having a
discussion on whether you should use "possibly", "perhaps", or
"sometimes" as the fourth value for a yes/no flag variable.



That sounds like a real bike shed
discussion.  Who cares what you pick when all the options are
stupid?



Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 15:24 • by Bustaz Kool
Mayhaps the Group administrator's name is "May Brown" but everyone calls her May B.

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 15:34 • by Charles Nadolski
36667 in reply to 36652
Jeff S:

Don't forget "supposedly", "allegedly", "aparently", and of course "no doubt!"





I'd hate to work somewhere where people are "supposedly" or "apparently" administrators :(

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 16:02 • by DZ-Jay
36668 in reply to 36667
Charles Nadolski:
Jeff S:

Don't forget "supposedly", "allegedly", "aparently", and of course "no doubt!"





I'd hate to work somewhere where people are "supposedly" or "apparently" administrators :(




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.

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 16:06 • by Carl
36669 in reply to 36668
"why don't you just tell me the name of the user you want to be..."

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 16:27 • by triso
36670 in reply to 36667
Charles Nadolski:




I'd hate to work somewhere where people are "supposedly" or "apparently" administrators :(


I think it would be even worse if you were "supposedly" paid every two weeks.

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 16:37 • by triso
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."

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 16:41 • by Lance
36672 in reply to 36662
rogthefrog:

Where's the Anthrax version?


<cfif session.isAdmin EQ "NOT!">
  (mosh)



 


Sweet, an Anthrax reference! That takes me back to high school. "What is it?....caught.... in... a mosh!"


[6]


 

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 16:51 • by Adrian
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-|]

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 17:10 • by ammoQ
36675 in reply to 36663
smitty_one_each:

Anonymous:
Anonymous:
What about 'tralse' or 'frue'?
I prefer "Nes" and "Yo".


If you're feeling Deutsch, there's the wonderfully compact "jein"





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".



Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 17:24 • by -L
Finally someone has found use for fuzzy logic. I mean, the world is not black / white either, so why should booleans be?

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 18:38 • by bigb
Don't forget sometimes, often, usually, irrelevant, and perhaps.  This design in ridiculous.

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 18:45 • by John Smallberries
Wow. I never thought of using a software implementation of the Magic 8-Ball as my security mechanism...

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 18:55 • by loneprogrammer
36682 in reply to 36680
John Smallberries:
Wow. I never thought of using a
software implementation of the Magic 8-Ball as my security mechanism...


Will I be able to modify this database?



Cannot predict now.



Dammit.  Server must be down again.



Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 20:23 • by Jon Limjap
Alex Papadimoulis:

<a class="user">Logged in as:a> #session.fullname# 
<cfif session.isAdmin EQ "yes">
(Site Administrator)
<cfelseif session.isAdmin EQ "maybe">
(Group Administrator)
<cfelse>
(Member)
cfif>





It isn't a WTF... they were using Fuzzy Logic!

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 20:44 • by CornedBee
36686 in reply to 36675
ammoQ:
smitty_one_each:

If you're feeling Deutsch, there's the wonderfully compact "jein"





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".






I disagree again. "Jein" in my experience is used to say "I can't, for the life of me, decide."

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 20:58 • by clockwise
36687 in reply to 36647

DZ-Jay:


This won't work -- its completely ignoring other similarly valid boolean states, such as "probably", "perchance", "mayhaps", "kinda", and "duh".

    -dZ.


Marge: "Does that ear-ring mean you're a pirate?"


Pirate: "Kinda."

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-20 21:42 • by Gary Wheeler
36688 in reply to 36651
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...

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-21 01:36 • by vhawk
Now this is a definite maybe ....  this even handles quantum
computing - with the value of maybe only becoming known when tested
....

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-21 02:11 • by diGriz
36695 in reply to 36686
CornedBee:
ammoQ:
smitty_one_each:

If you're feeling Deutsch, there's the wonderfully compact "jein"





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".






I disagree again. "Jein" in my experience is used to say "I can't, for the life of me, decide."




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 :-)

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-21 04:17 • by Philz
36696 in reply to 36695
diGriz:
CornedBee:
ammoQ:
smitty_one_each:

If you're feeling Deutsch, there's the wonderfully compact "jein"





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".






I disagree again. "Jein" in my experience is used to say "I can't, for the life of me, decide."




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 :-)




Na, was ist denn nun, du Schiffmeister, kommst Du mit, Du Kollegenschwein?

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-21 04:31 • by diGriz
36697 in reply to 36696
Anonymous:
diGriz:
Believe me, I'm a native speaker :-)




Na, was ist denn nun, du Schiffmeister, kommst Du mit, Du Kollegenschwein?


Wohin? Zum LinuxTag? Natürlich werde ich da sein :-)



(Why do you call me "Kollegenschwein"?)

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-21 04:38 • by Philz
36698 in reply to 36697
diGriz:
Anonymous:
diGriz:
Believe me, I'm a native speaker :-)




Na, was ist denn nun, du Schiffmeister, kommst Du mit, Du Kollegenschwein?


Wohin? Zum LinuxTag? Natürlich werde ich da sein :-)



(Why do you call me "Kollegenschwein"?)




Hell I'd really like to be there as well!



That was a quote taken from "Fettes Brot - Jein" :-)



Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-21 04:46 • by diGriz
36699 in reply to 36698
Anonymous:
That was a quote taken from "Fettes Brot - Jein" :-)



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 :-)

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-21 05:52 • by Welcome To The Machine
36700 in reply to 36682

loneprogrammer:
John Smallberries:
Wow. I never thought of using a software implementation of the Magic 8-Ball as my security mechanism...

Will I be able to modify this database?

Cannot predict now.

Dammit.  Server must be down again.


Hey, that was nearly a Haiku!

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-21 07:12 • by Tallies the Techno Monkey
36702 in reply to 36651
Anonymous:


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."




LMAO! That insanely funny. Good one... [:D]

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-21 08:04 • by Rank Amateur
36704 in reply to 36697

diGriz:
Anonymous:
diGriz:
Believe me, I'm a native speaker :-)


Na, was ist denn nun, du Schiffmeister, kommst Du mit, Du Kollegenschwein?

Wohin? Zum LinuxTag? Natürlich werde ich da sein :-)

(Why do you call me "Kollegenschwein"?)


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."

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-21 08:26 • by smitty_one_each
36705 in reply to 36675
ammoQ:
smitty_one_each:

Anonymous:
Anonymous:
What about 'tralse' or 'frue'?
I prefer "Nes" and "Yo".


If you're feeling Deutsch, there's the wonderfully compact "jein"





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".






Request you update Leo,
sir.

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-21 08:34 • by brazzy
36706 in reply to 36649
Kodi:

OMG  since a string was used for the to store a boolean why not use session.isAdmin to describe the actual role





Because then you'd have to change the existing code that expects "yes" and "no".

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-21 08:41 • by SerKevin
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.

Re: Yes ... I mean No ... errr, Maybe. Perhaps?

2005-06-21 09:04 • by diGriz
36708 in reply to 36704
Rank Amateur:
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."



Okay, I'll give it a try:

diGriz:
Anonymous:
diGriz:
Believe me, I'm a native speaker :-)


Well, what next now, you shipmaster, do you come along, you scumbag of a so-called colleague?

Whereto? To the LinuxTag? Of course I'll be there :-)

(Why do you call me "scumbag of a so-called colleague"?)



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 :-)

« PrevPage 1 | Page 2Next »

Add Comment