- 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
********* NEWSFLASH ************ Little Bobby T. now obtained a drivers license! see his car! ********* NEWSFLASH ************
Admin
The thing is... not everybody is a gifted developer, and certainly very few people are as gifted as I am.
But there's such a thing as common sense. You know, a council that collects rubbish only once a fortnight, and then fines citizens because their wheelie bins are too full, that's not having common sense. (And therefore, it happens all the time in the United Kingdom.)
But some people just don't have that 'common sense'. This reminds me of a developer who used to work with us, who was tasked to integrate two (fairly complex) systems that I wrote.
He had some problem, asked me to help him, which I did, after which I watched him type in code that was all wrong, and showed that whatever I told him got somehow sidetracked along the way and did not reach 'go' in his brain, and most certainly did not collect $200.
The systems have never really recovered from it.
Admin
IntelliJ IDEA can inline such methods with a single command. It will even remove the old method, so such cleanup is a breeze. /beentheredonethat
Admin
One of my pet hates is this:
boolean myvar = false; if (someBooleanExpression) { myvar = true; } return myvar;
instead of:
return someBooleanExpression;
Admin
#include<math.h> char* is_zero(const int& n) { const int max=32; char str[max]; for(int i=0;i<max;++i) str[i]=0x30+((n/int(pow(10,max-1-i)))%10); for(int i=0;i<max;++i) if(str[i]>='1' && str[i]<='9') return "red"; return "is zero"; }
Admin
Hey! isNotNull has a null statement in the if block for "timing".
Admin
Oh man, you found my utility package! I was looking all over for that!
Does it still have ReturnLengthOfString(string input) and ReturnCountOfCollection(ICollection collection)?
Admin
If a Nan signals when nobody is around to hear it, does it become quiet?
From an aesthetic standpoint, I think they sacked the guy too early. I'd really like to see his implementation of
OrAlso, somebody sooner or later is going to mention that the captcha is "damnum." Indeed.
Admin
CAPTCHA: intenteger
Admin
Yes, an Extremely Sh**ty Programmer Library... yes, i do believe it is!
Admin
There. Fixed it.
TRWTF here is that the department as a whole seemed to have a "Well, it works so who cares?" attitude. Any old code review would have thrown up warnings about this, and maybe, just maybe, someone could have had a word in the guy's ear about uselessness and what-not.
Admin
int is_null(char* s) { s=NULL; // make sure s is null. if(s!=NULL) // check if s is really null! { printf("Your computer has got bad memories, better go and buy a new one."); return !1; } return 1; // bene }
Admin
"I know how to spell integer, but I don't know where to stop."
Admin
According to Wikipedia, an "intenteger" is a string that you intend to be parsed as an integer.
http://en.wikipedia.org/wiki/Intenteger
Admin
I really like the isEmpty function. Two parameters, returns the hex for color red... Is just so random!
Admin
OK, two things. Are you seriously suggesting that there's something random about having two parameters?
Anyway, the other thing. This is not "the hex for color red." I've checked with my local Wicca expert, and she definitely recommends a garlic bulb with a pin in each clove.
It's not even "the RGB representation for the color red." There are at least four of the fuckers, and I'm not even counting "the RGB representation for the color red for somebody who is red-green color-blind."
It's digital 8-bit, and as such you have to wonder why the piss-artist in question picked it.
Presumably because the function in question was used to highlight a failure in red ... gosh, who'da thunk?
In terms of a "utility" this has a very limited utility, but that's not a surprise. It's a hell of a lot less of a WTF that pratting on about your l33t knowledge of the most common form of RGB encoding.
Admin
function isBrillant() return "Hells Yeahs!";
Admin
These utilities rock!
I can haz rest of c0des?
if (isNull(x) && isNotNull(x)) { setMyFace(isEmpty(""," ")); }
Admin
"The OTHER 24 methods weren't much better."
That was the part of the article that made me wonder. If you have 24 methods and display 3, how do you have 24 others? I tend to think this developer did a good job to leave a company where the other devlopers have such poor math skills.
Admin
Admin
Admin
HR doesn't make the hire decision (unless he has a felony he forgot to mention) - it's your coworkers that can't screen out bad candidates.
Admin
It fell from favour because it was never possible to get certified. The examiners just always said. "You cannot pass!"
Admin
Do not go to the elves for advice, for they will tell you both isNull(x) and isNotNull(x). Never mind, that works here!
--G
Admin
I completely agree, however I know that one day I may see some of my code on here, my only hope is that it is not the code I have written within the last couple years.
Admin
How on earth did you get your hands on the source code of Windows ME?
Admin
Your missing a ")" on the e.isRetarded() line.
CAPTCHA Eros... not so much, no.
Admin
Admin
I just laughed out loud in real life.
Admin
That won't compile. You missed the escape sequences inside the printf() format string.
Admin
Admin
Hangover? It's still drunk!
Admin
Looks like functional programming gone really bad.
Also a very bad case of not understanding decoupling concepts. My guess is it was meant to have been used as such
I can't explain away the intenteger though. Possibly typo + IDE autocomplete + lack of documentation.
Admin
Looks like functional programming gone really bad.
Also a very bad case of not understanding decoupling concepts. My guess is it was meant to have been used as such
I can't explain away the intenteger though. Possibly typo + IDE autocomplete + lack of documentation.
Admin
Exactly. It makes me wonder how many retarded developers we have reading and commenting on these stories. Quite clearly none of them can read. I'd like to see their code that doesn't comform to spec. You read and speaka teh gud engrish, ja!?
Admin
Nothing wrong with thinking outside the box.
I want to live in a world where NULL != NULL(;).
Admin
Admin
Admin
Windows Middle Earth?
Damn those trolls....
CAPTCHA: Nobis, one of Frodo's buddies?
Admin
Good one! This really made me laugh.
Captcha: nimis Latin for "too much"
Admin
Admin
Admin
"I opened the package and found a single class with 24 methods filled with sad code." [...] Scott continues, "those were the 1st, 2nd, and 3rd methods in the utility class. The other 24 methods weren't much better."
Now, how many mehtods were there again?
Admin
Admin
No amount of education can cure that shitty programmer. A real WTF!
Admin
I'm almost afraid to ask, but:
...why is "integer" String?
Mike5
Admin
I like my women to be like my code. 12 years old and undocumented.
Admin
See, "Mexicali Blues" by the Grateful Dead. :-)
Admin
Come on, everyone knows that self commented code sometimes leads to issues, but at least you can tell what the programmers INTENTeger was when writing this code.
Admin
Damn, I got rickrolled.