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?
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.
Well, as we’re on the subject of geeky source code humour and Zeldman, here’s a submission for the ad Graveyard from many years ago. I did a parody of a parody and here’s what you get:
The Star Wars Ad: http://www.zeldman.com/adgraveyard/30.html
My Ad: http://www.zeldman.com/adgraveyard/31.html
Geek wallpaper!
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…
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!’);
}