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

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

Mrz 28 2011

But for now…

Christoph

Thanks to Sebastian R. for this code candy

// the two salts for the password. I know it could be safer
// with random salts but for now it’s okay

Source: found in an old configuration file in third-party software
Programming language: PHP

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

Mrz 16 2011

This function could be re-written

Christoph

/**
 * This function could be re-written to be more clean and
 * effective – yet it’s not that important.
 */

Source: Direct link to the source code
Software: TYPO3
Programming language: PHP

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

Feb 16 2011

getSort

Christoph

Thanks to Keenora for this code candy:

function getSort() {
  // class “Doku_Parser_Mode_code” returns 200
  return 194;
}

Software: DokuWiki
Programming language: PHP

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