Programming Humor

By Deane Barker on June 5, 2004

Code Humor Challenge: Some pretty funny examples of developers trying to be funny. People are submitting hundreds of comments of funny code they wrote and tried to get (or succeeded in getting) into production.

One of my previous employers had, for historical reasons, the requirement that all class names be prefixed with “Mc” (McUser, McCheckbox, etc.). I created the class McNugget, complete with methods like McNugget.dip(McNugget.BBQ_SAUCE).

This one’s pretty good too:

Disco = Uncool

Do Until Disco = Cool

    if Year gt 1970 And Year lt 1978 then

        Disco = Cool



    End if




Comments are closed. If you have something you really want to say, tweet @gadgetopia.