• StormeNet (unregistered) in reply to Anon

    I have ReturnLengthOfString!

    ReturnLenghtOfString(string input) { int error = 0; if (isNotNull(input) && isNotNull(error.ToString()) &&error == 0) { for (int i = 0; i < input.Length; i++) { if (isNotNull(input)) error = error + 1; else error = 0; } error = input.Lenght; // just to be sure!!! return error - RANDOM /* test error handling */; }

  • Anonymous (unregistered) in reply to Yanman
    Yanman:
    I like my women to be like my code. 12 years old and undocumented.
    Sir, you are officially my hero for the week of Monday 02/11/09 to Sunday 08/11/09. Thank you kindly!
  • lol (unregistered) in reply to Anonymous
    Yanman:
    I like my women to be like my code. 12 years old and undocumented.

    I prefer being just friends, can still touch each other's private members. :S

  • Jay (unregistered) in reply to Yanman
    Yanman:
    I like my women to be like my code. 12 years old and undocumented.

    In most of the U.S., that will result in an IllegalStateException.

  • qbert (unregistered) in reply to Chi Happens

    Why are you returning a bool value from a function whos name starts with 'is'? Obviously you should be returning a string with hex code for red instead!

  • Laughing Jack (unregistered) in reply to Jo
    Jo:
    Severity One:
    Just Wondering...:
    Severity One:
    The thing is... not everybody is a gifted developer, and certainly very few people are as gifted as I am.
    Do you masturbate in front of your self portrait?
    I don't need to. Plenty of others are already doing just that.
    Yeah... in 'a beautiful mind' kinda way! How are all those 'others' doing?
    Fine thanks. What do you want, a status report?
  • Xythar (unregistered)

    So apparently TDWTF has now overloaded the boolean type to have four possible values:

    true false FILE_NOT_FOUND #ff0000

  • Bob (unregistered) in reply to Anonymous
    Anonymous:
    If the devs like a candiate and HR doesn't they don't get hired. If HR likes a candidate and the devs say he's useless, he gets hired anyway. This is so common in our office that I suspect it may be an official procedure to avoid decent candidates.

    So, then.... how did you get hired? ;)

  • Pax (unregistered)

    The isIntenteger() function is not so strange. They obviously had a guy (using masculine gender but could be female) on the team with some sort of deficiency, or he was given the wrong function name.

    He wrote quite a bit of code like that and broke the build the night before release. When management asked the quickest way to fix it, the author of that excellent library of functions came up with the brillant idea of just adding a function with that name.

    Seriously, I'm surprised they let him get away :-)

  • Enterprisey (unregistered)

    BUT! There should be no BIAS:

    http://thedailywtf.com/Articles/Happy_(Belated)_Jed_Day!.aspx

    Quote: // need to set the result if it hasn't been set yet, we'll randomly decide true or false // because there should be no bias. if IsTrue(ResultHasBeenSet)=IsTrue(0=1) then Result:=((Random(2)=Random(2))=True) else Result:=(Result=True);

    CAPTCHA: eros ....WTF?????

  • (cs) in reply to Laughing Jack
    Laughing Jack:
    Jo:
    Severity One:
    Just Wondering...:
    Severity One:
    The thing is... not everybody is a gifted developer, and certainly very few people are as gifted as I am.
    Do you masturbate in front of your self portrait?
    I don't need to. Plenty of others are already doing just that.
    Yeah... in 'a beautiful mind' kinda way! How are all those 'others' doing?
    Fine thanks. What do you want, a status report?
    Don't give status, or everyone will want one!
  • (cs) in reply to Bobble

    Rip Blu-ray with 12 different ways. Download Blu-ray rip software for free and rip Bluray to DVD, PC, MP4, ISO, AVI, MPEG, iPod, WMV, MOV, etc.

    blu ray to psp converter, rip blu ray to wmv, blu ray to mpeg

  • (cs) in reply to NightDweller

    Rip Blu-ray with 12 different ways. Download Blu-ray rip software for free and rip Bluray to DVD, PC, MP4, ISO, AVI, MPEG, iPod, WMV, MOV, etc.

    rip blu ray to wmv,

  • luptatum (unregistered) in reply to Bob
    Bob:
    Anonymous:
    If the devs like a candiate and HR doesn't they don't get hired. If HR likes a candidate and the devs say he's useless, he gets hired anyway. This is so common in our office that I suspect it may be an official procedure to avoid decent candidates.

    So, then.... how did you get hired? ;)

    He didn't.

  • Esk (unregistered)

    Must not confuse integer with intentenger ! One has intent the other does not o.O

  • Andreas (unregistered)

    I like the idea to have the same procedure for all standard spelling mistakes I make. We should I adapt to the machine, if I could adapt it to my misspelling. :)

  • K. Adams (unregistered)

    Ok, im a 41yo coder wanna be, and I find this ROFL hilarious!

    K

  • Callin (unregistered)

    I enjoyed the double semicolon in the isNotNull method.

  • Jay (unregistered)

    It's only funny because it's Java.

    If it had been PHP, nobody would have cared because reinventing the wheel as a way to work around language inconsistencies, is considered standard practice.

  • LO (unregistered)

    In-ten-teger sounds actually pretty funny in Polish...

    "ten-tego" is a common "comma-word" that one might use when still thinking what to say (and might be equal to simple "ummmm...").

    Anyway it also has direct meaning as: "this-those" [masculinum] (what is also a shortest possible gay joke in Polish :P).

    "Tenteger" might also mean "doodad", when someone would like to point some piece of equipment not knowing the real name of it. Then it can be replaced by simple "var" statement :)

    I like - this is joke with plenty meanings for me :P

  • spikeysnack (unregistered)

    the RWTF is that none of you got what he was doing: writing code to fix spelling errors in the original code instead of fixing the spelling errors themselves. He should have used the spellcheck pattern:

    public boolean trueOrflase( boolean TorF) { boolean myBoolean = new Boolean(TorF); if (myBoolean.true() == Boolean.true() ) { return trueOrFalse( myBoolean.value()); } else { return trueOrFlase (myBoolean.value() ); } }

  • anonymous (unregistered)

    I'd bet someone lunch that "Intenteger" was created by someone who relied heavily on auto-complete and couldn't spell.

    Half the time he typed "isInt" or "isInte" and the top result was "isIntegerInRange" (G is alphabetically before N); the other half he typed "isInten" or "isIntent" and the result was "isIntentegerInRange".

    It's a toss-up whether he created the misspelled function because he didn't realize the other existed, or he knew but just wanted the function name to autocomplete even if it was misspelled.

Leave a comment on “The Utility Package ”

Log In or post as a guest

Replying to comment #:

« Return to Article