Programming Humor

Jun 5

Programming Humor

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

        GetDownAndDance
        Disco = Cool

    Else

        MockDiscoDancers

    End if

Loop


Comments

by Taka,   June 6, 2004 12:39 AM  

On a related note; http://www.thedailywtf.com

:-)



Comments are Closed

Thanks to all who participated.

Want to advertise on this site? Contact FM.