Source Code Humor

Source code humor is one of my favorite things in the world. I think when properly done, and ideally involving a pun of some sort, it is the highest form of humor in the world. It was introduced to me by studying the source of Jeffrey Zeldman as a young Jedi, and since I have on some level incorporated it into most of my projects since then. It is meant for a select audience, the elite handful that view source with a critical eye, and is usually either in the form of HTML comments—the blunt way to do it—or subtly interspersed in attributes like id, rel, and class. This is neither, and being server-parsed is never seen by the browser, but I had a hearty laugh after I stumbled on it by accident. Anyone have a favorite example of source humor?

5 thoughts on “Source Code Humor

  1. go to antigirl.com and look at the source. i’m not sure if this is source code humor, but it’s pretty impressive nonetheless.

  2. I used to stick something like “If you’re reading this, you have way too much time on your hands” into my source. Not a big chuckle but still…

  3. I often put a message in unreachable segments of code.. take this php code for example:

    function myFunc($var)
    {
    if($var > 0)
    return true;
    else
    return false;

    die(‘the sky is falling!’);
    }

SHARE YOUR THOUGHTS