# LEAVE THIS ALONE or you are FUCKED!!# If you are not sure what flock does, please stop right now
# and go find a nice grown-up to help you./* and then a miracle occurs... */# I'm really sorry you had to see that.### This is just ridiculous, three global hashes so that ### I don't have to lookup page_ids. Broken window, it ### was broken so why not just do more of the same, sigh.Luckily, this is legacy code that one of my brilliant co-workers has spent a lot of time refactoring and rewriting. The rewrite is in QA as we speak. So there will be no more global hashes anymore!
// This is a terrible way to do this, but it works// Seriously, I was forced to do thatin front of code that can't be healthy at all. I once left a
Help, I'm stuck in spaghettifor whoever the poor soul is going to be who has to refactor my mess.
// Forgive me for what I'm about to do [horrible regexp]For various values of 'best'.
# setting a flag
flag = True
# looping through the lines
for line in lines:
....
....
# checking the flag
if flag:
.....
The program ignores documentation comments, because those are written for public consumption. I'm only interested in the comments used for private communication between team members.It strikes me that check-in descriptions might make a more interesting data source than function and variable names.
/* --------------------- This is the messiest code I've ever produced. But that doesn't matter, as it's clearly been spec'd as a quick'n'dirty throwaway project that'll never be reused. If you're reading this, that's been disregarded. Quit your job, leave the country, fake your death, whatever it takes to avoid working on this file. --------------------- */and the best line of code I've ever typed has to be:
if (!predator._visible) gameOver.man.gameOver();
/**
*
* @param i An integer
*
**/// Presumably, we don't need to call 'x' method again here, as we did it above.Some developer comes in behind me, leaving my comment, and adding his own, saying:
// This assumption is WRONG. We always need to call 'x' method.except longer, more involved, and then re-adding the method call. My favorite part about it? In the process of adding one line of code (and a paragraph of chastising comments), he still managed to independently break the code entirely.
// I pity the poor bastard who has to try and debug this.
// I have no idea how that regex is doing what it's doing, and I wrote the damn thing.
// With any luck it won't be me who has to debug it again.
// Lots of love, twine42// Todo : finish implementing this before we go live.
// $this->FixStupidSyncBug();I fucking hate CVS" as my check-in comment.// [name] [date]: This is horribly wrong / quick-and-dirty hack / will break / will scramble peoples' data! Fix it after [version] ships!where, of course, version shipped a month or two after date, which is itself many years and many major versions in the past.
catch {/* TODO */} // I made you a exsepshun, but I eated it.
« Older The Pirate Bay will be sold to a Swedish listed so... | The most complete terrain map ... Newer »
This thread has been archived and is closed to new comments
posted by ubiquity at 5:46 AM on June 30 [2 favorites has favorites]