Okt 23 2011

Complicate your code

Christoph

// 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 for all browsers except
// for IE, which, to my knowledge, is the only browser in
// existance where you need to complicate your code to
// fix bugs. Goddamnit. :(

Source: Direct link to the source code
Software: jStore
Programming language: Java Script

1 Star2 Stars3 Stars4 Stars5 Stars (4 Bewertungen, Durchschnitt: 4,00 von 5)
Loading ... Loading ...

Apr 13 2011

Please increment the following counter

Christoph

Thanks to Markus B. for this code candy

/**
 * Once you are done trying to ‘optimize’ this routine,
 * and have realized what a terrible mistake that was,
 * please increment the following counter as a warning
 * to the next guy:
 *
 * total_hours_wasted_here = 11
 */

Programming language: PHP

1 Star2 Stars3 Stars4 Stars5 Stars (8 Bewertungen, Durchschnitt: 4,75 von 5)
Loading ... Loading ...

Nov 2 2009

Windows creation

Christoph

/* yergh! the windows creation and arrangement with implicit
 * pair windows really really f*cking stinks! */

Source: Direct link to the source code
Software: Spatterlight
Programming language: C

1 Star2 Stars3 Stars4 Stars5 Stars (6 Bewertungen, Durchschnitt: 3,33 von 5)
Loading ... Loading ...

Okt 21 2009

Vorschlag

Christoph

else
{
 printf( “Vorschlag: Erhäng dich, schon wieder dieser f*cking
          Fehler, ich glaub ich kotz!\n”);
 exit( 1);
}

Source: Direct link to the source code
Programming language: C

1 Star2 Stars3 Stars4 Stars5 Stars (6 Bewertungen, Durchschnitt: 3,33 von 5)
Loading ... Loading ...

Sep 30 2009

It can be used to scare little children!

Christoph

/* Jobmine’s HTML is horror! It can be used to scare little children! Writing a regex to parse it would be worse than waterboarding. Instead, I’ll use a dirty hack. Since Jobmine’s HTML is auto-generated, clever string-based parsing can be done on it. */

Source: Direct link to the source code
Software: jobnotifier
Programming language: C#

1 Star2 Stars3 Stars4 Stars5 Stars (8 Bewertungen, Durchschnitt: 4,88 von 5)
Loading ... Loading ...