A long time ago, I saw this on bash.org:
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++
It inspired me to name my blog foreach(bill) paywith(skill), which was intended to “pseudocodify,” if you will, the expression, “Skills to pay the bills.”
Recently I asked the audience of StackOverflow.com if they knew of any others. Here’s a few of my favorites, some of them with my slight modifications.
Shakespeare:
question = 2*b || !(2*b)
Working for the man:
class Employee
{
long hours;
short lunch;
byte pay;
}
A Star Wars reference to Yoda, who says, “Try not. Do… or do not. There is no try.”:
do() || !do() // try()
A classic:
while(!(succeed = try());
From Futurama, in BASIC:
10 SIN 20 GOTO HELL
Ah, to be a kid again.
if (happy && know(it)) hands.clap();
Sunny said
Great to have you back!