Apr 14 2015

This annoyed many windows users

Christoph

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 with the
** “sqlite” name in the c:/temp folder.
** This annoyed many windows users. Those users would then
** do a Google search for “sqlite”, find the telephone
** numbers of the developers and call to wake them up at
** night and complain.
** For this reason, the default name prefix is changed to
** be “sqlite” spelled backwards. So the temp files are
** still identified, but anybody smart enough to figure
** out the code is also likely smart enough to know that
** calling the developer will not help get rid of the
** file.
*/
#ifndef SQLITE_TEMP_FILE_PREFIX
# define SQLITE_TEMP_FILE_PREFIX “etilqs_”
#endif

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

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

Nov 3 2014

I’m sleepy

Christoph

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#

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

Mai 30 2012

Distracted by their beards

Christoph

/**
 * 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 source code
Software: smileysmazehunt
Programming language: C++

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

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...

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...