Time to time

// Once upon a time, two `array_map` calls were sitting there, 
// but for some reasons, they triggered `E_WARNING` 
// time to time (because of PHP bug [55416]
// (https://bugs.php.net/bug.php?id=55416). 
// Now, they are gone.

Seek and Destroy

/*
 * This function is cleaned from bugs with help 
 * from the Metallica song "Seek and Destroy"
 * (IMHO the best song ever from Metallica)
 */

/* hello world (again) */

Every programmer and software developer knows them: source code comments or code snippets that you have to read a second time and still can’t believe. That’s a code candy!

You want an example?

//calling mr dj..... yeeeeah... pamela anderson rulez..­!
//create new binary tree using tmp file

All right? All right!

On this page I collect the funniest, weirdest and often completely out-of-place code comments.
Did you also find a great code candy? I would be very happy if you would share it!

With that in mind:

# This job would be great if it wasn’t
# for the f*cking customers.


Why “hello world (again)”?
This is codecandies.com’s 10 year challenge 😉
Exactly 10 years ago, on 29 January 2009, I started this blog for the first time and published code candies.
As time went by the intervals between the posts got bigger and bigger until the blog fell asleep.

Now, version 2 starts with revised older posts and a lot of new code candies. Furthermore the blog is now in English instead of German.

The biggest change will be the source references. I found many earlier code candies via Google Code Search. Since the service has been shut down in the meantime, these source references are dead.
So I started looking for the original code again and put it on github (I hope that github won’t be shut down so quickly ;-)).

I will also create a tile from each code candy and share it on Twitter, Facebook, Instagram and Pinterest.

Last but not least: A big “thank you” goes to Nico Brünjes, who gave me the Twitter-Nick @codecandies