I found this awesome thread in /r/AskReddit today. /u/dingobiscuits asks the programmers of Reddit to sum up a popular film, song, or TV series in a few lines of fake code. The answers do not disappoint. Here are some of my favorites.
From /u/takagi: (Call me maybe)
if (justMetYou)
{
crazy = true;
cout<<number<<endl;
int x = rand()%100;
if (x>=50)
{
callMe();
}
}
From /u/ZekeD: Batman or Hey Jude?
for ($i = 0; $i < 11; $i++){
$chorus .= "Na ";
}
if ($subject == "Batman"){
$chorus .= " BATMAN.";
}
else {
$chorus .= " Hey Jude.";
}
From /u/Gazz1016: The Matrix
int[][];
From /u/Sahasrahla: Inception
function inception(){
return inception();
}
There are a bunch more very good ones in there. They made my day!