Jan 6 2012

Clean it up

Christoph

/*
 * 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: OpenBSD
Programming language: C

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

Dez 6 2011

out-of-date preferences

Christoph

# 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
Programming language: Perl

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

Dez 6 2011

this needs to be explained

Christoph

Thanks to David for this code candy

// this needs to be explained!!
$this->_searchResult[$type] = $this->_searchResult[$type];

Programming language: PHP

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

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 (3 Bewertungen, Durchschnitt: 3,67 von 5)
Loading ... Loading ...

Sep 27 2011

Trying to understand this years from now

Christoph

/*
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 wanted to be true to the perl tradition, the only comment in this file would be something like:

…they shuffled back towards the rear of the line. ‘No, not at the rear!’ the slave-driver shouted. ‘Three files up. And stay there…

However, I really needed to violate that tradition just so I could keep track of what happens myself, not to mention some poor fool trying to understand this years from now :-).
*/

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

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