This algorithm sucks
/* FIXME: This algorithm sucks. I need to be shot for * writing such atrocious code. Grr. */ Source: Direct link to the source code Software: Flood – a profile-driven HTTP load tester Programming...
View Articleyellow pages
/* * It’s someone else’s. Let our fingers * do the walking. (Why the fuck do they call it * the “yellow pages” anyway. They’re white pages * dammit! If they were YELLOW pages, we could * say...
View ArticleDon’t read this code right after dinner
/* * Accessing the EEPROM is `interesting’ to say the least * – don’t read this code right after dinner. * * This is all about black magic and bit-banging the * device… I wonder in what hospital...
View ArticleWhy are smart people using this?
# WTF is this? http://optionparser.rubyforge.org/ # why are there like 20 differnt option parsers all called # OptionParser!? and seemingly no attempt at # disambiguation. its like an oldskool CPAN...
View Articlesmelling like retched cigarette ashes
/* We changed phase but ESP shows bus service, * in this case it is most likely that we, the * hacker who has been up for 20hrs straight * staring at the screen, drowned in coffee * smelling like...
View Articlefeel good today?
/* okay, this is a mess. some 3d apps seem to try being */ /* unique, hello cinema4d & 3d exploration, feel good */ /* today?, and save this crap in tons of different */ /* formats. gah, those...
View ArticleRelax
/* uhhh…. i’ve commented this out. it was a great pervertion, i know, but it could result in broken packets, and that’s more f*cking than a simply crash. Relax. */ Source: Direct link to the source...
View ArticleTrying to understand this years from now
/* Most of this code was written while watching the Marlins sweep the Giants in the 1997 National League Playoffs – no Braves fans allowed to use this code (just kidding :-). I realize that if I...
View ArticleComplicate your code
// To make Flash Storage work on IE, we have to load up an // iFrame which contains an HTML page that embeds the // object using an object tag wrapping an embed tag. // Of course, this is unnecessary...
View Articlethis needs to be explained
Thanks to David for this code candy // this needs to be explained!! $this->_searchResult[$type] = $this->_searchResult[$type]; Programming language: PHP Tweet
View Articleout-of-date preferences
# Now bring out-of-date preferences back up to speed # What a nice developer I am, taking care of the # behind-the-times users. :-) Source: Direct link to the source code Software: PilotManager...
View ArticleClean it up
/* * This code is rather messy, but I don’t have time right * now to clean it up as much as I would like. * But it works, so I’m happy. :-) jpw */ Source: Direct link to the source code Software:...
View ArticleGod were we wrong
Thanks to Andi for this code candy /** this code does more than necessary. this was because we thought we could leave the parameters optional. god were we wrong… */ Programming language: PHP Tweet
View ArticleIE caching for ajax requests
Thanks to dac-xp for this code candy /* * random number for the shitty InternetExplorer to f*ck * their caching-system. I hope the programmers of the IE * caching for ajax requests will die a...
View ArticleNo exceptions
Thanks to Tobias for this code candy return verify_iban($this->iban); # we could throw exceptions of various types, but why – # does it really add anything? possibly some slightly # better user...
View ArticleDistracted by their beards
/** * Returns the specified integer as a string because the * designers of C were too distracted by their beards to * write a lanague that doESNT SUCK ASS F*CK SHIT */ Source: Direct link to the...
View ArticleVim comments
“vim comments are so f*ckin stupid!! Why the hell do they “have comment delimiters that are used elsewhere in the “syntax?!?! We need to check some conditions especially “for vim Source: Direct link...
View ArticleLongest. Comments. Evar.
# FIXME: and this is just plain /wrong/. Naughty naughty # this is why I have to learn some kind of signal creation # techinque. OOOOH OH OH OH , ORRRRRR, I can just pass # in a single callback…? pull...
View Article2-dimensional array
Thanks to liskel for this code candy // I have absolutely no idea, why it becomes a // 2-dimensional array … so working around instead // of solving $css = $css[0]; Programming language: PHP Tweet
View ArticleJiggery-pokery
# all this f*cking around with unicode and the document # header is to get lxml to STFU. Yeah, this is probably # The Wrong Way(TM), once again, but that’s how I roll, # y0: ghetto-tastic shitball...
View ArticleGet all females
Thanks to Mike for this code candy // A function that retrieves all females from the database // for processing and display: function getGirls() { //if only it were really that simple […] }...
View ArticleSkip reading
// if you do not like UGLY MONSTERHACKS, // skip reading the next three lines […] Programming language: Java Tweet
View ArticleI’m sleepy
Thanks to Tito for this code candy // TODO: I believe the method (and all class in general) // doesn’t make any sense at all, but I’m sleepy and // it works fine Programming language: C# Tweet
View ArticleThis annoyed many windows users
Thanks to Andreas R. for this code candy /* ** 2006-10-31: The default prefix used to be “sqlite_”. ** But then Mcafee started using SQLite in their anti- ** virus product and it started putting files...
View ArticleEaten by a gigantic spider
Thanks to Hans for this code candy // Hack to save null value for imageId // The Zend Framework removes the key of all null values // in the params array… // See...
View Article