• (cs)

    TRWTF is, that they don't use FrOZ for analyzing what the User meant!

    FrOZ is a text adventure engine based on current technology from computational linguistics and theorem proving. It uses real natural language processing techniques to analyse the user's input and generate the system's output, and accesses a description logic knowledge base with a theorem prover.
  • Brady Kelly (proudly in Jo'burg) (unregistered)

    My very own:

            private readonly List<string> trueList = new List<string>(new string[] { "on", "true", "t", "yes", "y", "1" });
            private readonly List<string> falseList = new List<string>(new string[] { "off", "false", "f", "no", "n", "0" });
            private bool ParseBoolString(string boolString)
            {
                if (trueList.Contains(boolString.ToLower())) return true;
                if (falseList.Contains(boolString.ToLower())) return false;
                throw new ArgumentException(string.Concat("Invalid string for boolean value: ", boolString));
            }
    
  • (cs) in reply to Matey
    Matey:
    1: - we're geeks here

    Speak for yourself. I am actually a nerd, and not a geek.

  • Craig M. (unregistered)

    Just to clear up a couple of the questions popping up:

    There was nothing wrong with this code, the problem was elsewhere where it was completely ignoring what was being returned.

    This was an INTERNAL administration application which was never client facing, hense command line interface.

    The line before the code posted was:

    answer = answer.toLowerCase().trim();

    Cheers :)

  • John (unregistered)

    The real wtf is that the programmer didn't use else if

  • Julio (unregistered) in reply to BlueKnot
    BlueKnot:
    What, no provision for "maybe"?

    FILE_NOT_FOUND

  • cc (unregistered)

    What, no "Make it so, Number One"?

  • j00\2 |\|4m3 (unregistered) in reply to Migala
    Migala:
    grg:
    THE REAL WTF IS THEY DID NOT HANDLE THE CASE WHERE THEY WERE AN IDIOT AND HAD THEIR SHIFT-LOCK ON.

    THEN YOU'D NEED ALSO THE UPPER CASE COMPARISONS TOO !!

    4||D d0||'7 Ph0R937 7|-|3 r34L |-|4X0R5!

    //07 480u7 73# 1337 #4><0\2z 3/3n?!!1one!1

  • Tom (unregistered)

    QA: This still doesn't work! Dev: WHAT? QA: I typed "YES" and it didn't accept my answer. ESP: Did you bother to change the case of the string to lower before comparing?

  • Gollum (unregistered)

    Kinda bothers me that despite all it's options I can't use capital letters.... Where's Yes Y Yep YES Proceed (etc)

  • dPgn (unregistered) in reply to Jota
    Jota:
    Perhaps this was just a frustrated developer who was tired of dealing with bug reports.

    QA: When I typed "yes" it didn't work. Please fix.

    Developer: OK, "yes" should work the same as "y" now, and "no" should be the same as "n".

    QA: When I typed "ok" it didn't work. That is standard for dialog boxes. The prompt should be more forgiving. Please fix.

    Developer: But this isn't a dialog box... oh, whatever. There, now "ok" and "cancel" should be accepted as well.

    QA: The text on the page before mentions the word "proceed", so the prompt should accept that as well. Please make the prompt more forgiving.

    Developer: Fine. I'll make the prompt more forgiving. You want to type "proceed"? Here, you can type "proceed"! How about "affirmative"? You want "affirmative"? Or maybe "positive"? What about pirates? Aye? Do we have any pirates using our software? Gotta think of the pirates, yep! Hey, "yep" -- you want "yep" too? Have a "yep"! Have whatever you want! Is that forgiving enough? IS THAT FORGIVING ENOUGH?

    QA: When I just hit enter, nothing happens. Hitting enter should default to "yes".

    Developer: <hangs self, and Craig M is hired to replace him>

    I laughed at this more than I did at the actual WTF...

  • beefy (unregistered) in reply to Mee

    if(user.isStabbed()){ return false; }

  • aion kinah (unregistered)

    aion kinah costs are low, the choice of alchemists, a small choice of founds that can be fine work, the skills to make aion gold in the latter part of the time, because these era all too late to make money, you must male big investment that is to buy aion kina to make a buck, and reaches 399P nothing to say, like to spend 200 million by use cheap aion kina, aion online kinah do not get the equipment prior to proficiency and upgrade difficult.

  • minitech (unregistered)

    Well, what about sarcasm?

    if(answer.equals("No (sarcastic)") || answer.equals("Yes")) return true;
    if(answer.equals("No") || answer.equals("Yes (sarcastic)")) return false;
  • Friday (unregistered)

    Ninja! The developer forgot to include ninja answers! That's why he's not around any more: the ninja found out about it and enacted their revenge on him AND ninjitsu'd the program to forever be buggy!

  • Anon (unregistered) in reply to Mee

    so, it should have a condition for "*stabs"

  • BrandonPhone (unregistered)
    Comment held for moderation.
  • BrandonPhone (unregistered)
    Comment held for moderation.

Leave a comment on “Are You Sure?”

Log In or post as a guest

Replying to comment #411656:

« Return to Article