- 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
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 */; }
Admin
Admin
I prefer being just friends, can still touch each other's private members. :S
Admin
In most of the U.S., that will result in an IllegalStateException.
Admin
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!
Admin
Admin
So apparently TDWTF has now overloaded the boolean type to have four possible values:
true false FILE_NOT_FOUND #ff0000
Admin
So, then.... how did you get hired? ;)
Admin
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 :-)
Admin
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?????
Admin
Admin
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
Admin
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,
Admin
Admin
Must not confuse integer with intentenger ! One has intent the other does not o.O
Admin
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. :)
Admin
Ok, im a 41yo coder wanna be, and I find this ROFL hilarious!
K
Admin
I enjoyed the double semicolon in the isNotNull method.
Admin
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.
Admin
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
Admin
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() ); } }
Admin
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.