• (cs)

    let's not ignore the fact that they are using strings for what likely was originally meant to mimic a true/false value

  • Amazinderek (unregistered) in reply to Matt B

    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.

  • anonymous (unregistered)

    What about 'tralse' or 'frue'?

  • Justin Sippel (unregistered) in reply to anonymous
    Anonymous:
    What about 'tralse' or 'frue'?
    I prefer "Nes" and "Yo".
  • (cs)
    Alex Papadimoulis:
    <<font color="#0000ff">a</font> <font color="#ff0000">class</font>=<font color="#a52a2a">"user"</font>>Logged in as:<!--<FONT color="#0000ff"-->a> <font color="#008000">#session.fullname#</font> 
    <<font color="#0000ff">cfif</font> session.isAdmin <font color="#0000ff">EQ</font> <font color="#a52a2a">"yes"</font>>
    (Site Administrator)
    <<font color="#0000ff">cfelseif</font> session.isAdmin <font color="#0000ff">EQ</font> <font color="#a52a2a">"maybe"</font>>
    (Group Administrator)
    <<font color="#0000ff">cfelse</font>>
    (Member)
    <!--<FONT color="#0000ff"-->cfif>



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

        -dZ.
  • (cs) in reply to Justin Sippel
    Anonymous:
    Anonymous:
    What about 'tralse' or 'frue'?
    I prefer "Nes" and "Yo".


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

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

    <FONT face=Tahoma><FONT size=4><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</FONT>></FONT></FONT></FONT>
  • (cs)

    I wrote a system that handles multivariate truth values.

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

     

  • Javier G. Lozano (unregistered)

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

  • (cs) in reply to DZ-Jay
    DZ-Jay:
    Alex Papadimoulis:
    <<FONT color=#0000ff>a</FONT> <FONT color=#ff0000>class</FONT>=<FONT color=#a52a2a>"user"</FONT>>Logged in as:<!--<FONT color="#0000ff"-->a> <FONT color=#008000>#session.fullname#</FONT> 
    <<FONT color=#0000ff>cfif</FONT> session.isAdmin <FONT color=#0000ff>EQ</FONT> <FONT color=#a52a2a>"yes"</FONT>>
    (Site Administrator)
    <<FONT color=#0000ff>cfelseif</FONT> session.isAdmin <FONT color=#0000ff>EQ</FONT> <FONT color=#a52a2a>"maybe"</FONT>>
    (Group Administrator)
    <<FONT color=#0000ff>cfelse</FONT>>
    (Member)
    <!--<FONT color="#0000ff"-->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!"

  • (cs) in reply to DZ-Jay
    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
  • (cs)

    It seems like a joke.

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

  • Hank Miller (unregistered)

    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)

  • (cs) in reply to Matt B
    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.

  • (cs) in reply to Javier G. Lozano
    Anonymous:

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

    <FONT size=5>Sounds like this was coded for a pentium with the floating point error</FONT>

  • (cs)

    Because an administrator is an identity it's OK to be unsure of.

  • (cs)

    Where's the Anthrax version?

    <<FONT size=+0>cfif</FONT> session.isAdmin <FONT size=+0>EQ</FONT> <FONT size=+0>"NOT!"</FONT>>
      (mosh)

  • (cs) in reply to Justin Sippel

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

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

  • (cs)

    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.

  • (cs)
    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?

  • (cs)

    Mayhaps the Group administrator's name is "May Brown" but everyone calls her May B.

  • (cs) in reply to Jeff S
    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 :(
  • (cs) in reply to Charles Nadolski
    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.
  • Carl (unregistered) in reply to DZ-Jay

    "why don't you just tell me the name of the user you want to be..."

  • (cs) in reply to Charles Nadolski
    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.
  • (cs)

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

  • Lance (unregistered) in reply to rogthefrog
    rogthefrog:

    Where's the Anthrax version?

    <<FONT size=+0>cfif</FONT> session.isAdmin <FONT size=+0>EQ</FONT> <FONT size=+0>"NOT!"</FONT>>
      (mosh)

     

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

    [6]

     

  • Adrian (unregistered)

    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-|]

  • (cs) in reply to smitty_one_each
    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".

  • -L (unregistered)

    Finally someone has found use for fuzzy logic. I mean, the world is not black / white either, so why should booleans be?

  • bigb (unregistered)

    Don't forget sometimes, often, usually, irrelevant, and perhaps.  This design in ridiculous.

  • (cs)

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

  • (cs) in reply to John Smallberries
    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.

  • (cs)
    Alex Papadimoulis:

    <<font color="#0000ff">a</font> <font color="#ff0000">class</font>=<font color="#a52a2a">"user"</font>>Logged in as:<!--<FONT color="#0000ff"-->a> <font color="#008000">#session.fullname#</font> 
    <<font color="#0000ff">cfif</font> session.isAdmin <font color="#0000ff">EQ</font> <font color="#a52a2a">"yes"</font>>
    (Site Administrator)
    <<font color="#0000ff">cfelseif</font> session.isAdmin <font color="#0000ff">EQ</font> <font color="#a52a2a">"maybe"</font>>
    (Group Administrator)
    <<font color="#0000ff">cfelse</font>>
    (Member)
    <!--<FONT color="#0000ff"-->cfif>



    It isn't a WTF... they were using Fuzzy Logic!
  • (cs) in reply to ammoQ
    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."
  • (cs) in reply to DZ-Jay

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

  • Gary Wheeler (unregistered) in reply to Javier G. Lozano

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

  • vhawk (unregistered)

    Now this is a definite maybe ....  this even handles quantum computing - with the value of maybe only becoming known when tested ....

  • (cs) in reply to CornedBee
    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 :-)
  • Philz (unregistered) in reply to diGriz
    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?
  • (cs) in reply to Philz
    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"?)
  • Philz (unregistered) in reply to diGriz
    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" :-)

  • (cs) in reply to Philz
    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 :-)
  • Welcome To The Machine (unregistered) in reply to loneprogrammer

    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!

  • Tallies the Techno Monkey (unregistered) in reply to Javier G. Lozano
    Anonymous:

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

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

  • (cs) in reply to diGriz

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

  • (cs) in reply to ammoQ
    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.
  • brazzy (unregistered) in reply to Kodi
    Kodi:

    <font style="background-color: rgb(214, 224, 230);" 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>



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

    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.

  • (cs) in reply to Rank Amateur
    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 :-)

Leave a comment on “Yes ... I mean No ... errr, Maybe. Perhaps?”

Log In or post as a guest

Replying to comment #:

« Return to Article