// 05.Sep.2009

Funny (Creative) Programming Comments

Michal Gabrukiewicz was browsing Google code search when he stumbled over some funny comments within the code snippets of others. Some of them are really creative and it is obvious that some programmers like to have a little fun while doing their stuff.

I really love this one:

// Dear maintainer:
// 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 = 16

Last Revision: September 5th, 2009 at 09:43

2 Comments for “Funny (Creative) Programming Comments”

  1. Ha, I love this one too!

  2. I am definitely going to put that in my code one day, when I find a block that justifies it. It’s brilliant.

    Here’s another good one I came across:

    //The following was stolen in large part from MSDN.
    //I tried to give it back, but they wouldn't take it.
    //I don't blame them...

Contribute to the Discussion:

The comment handler is Gravatar enabled.