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

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 (14 Bewertungen, Durchschnitt: 4,86 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...