I was surfing around the Internet and I saw some developers discussing the funniest pseudo-code they have ever seen. Here are some snippets that I think are worth reading.

A programmer started to cuss
Because getting to sleep was a fuss
As he lay there in bed
Looping 'round in his head
was: while(!asleep()) sheep++

 

2 * b || ! (2 * b)


 class Employee {  
     long lunches;
     short hours;
     double pay;
};


Apple naming function:

function name($product){ return ‘i’.$product; }

Google naming function:

function name($product){ return $product.’ beta’; }

Microsoft naming function:
function name($product){ return name($product); } // what??? recursive


bikini.ToString();

 

Source: http://stackoverflow.com/questions/660972/what-is-your-best-pseudo-code-phrase/661043#661043