Movies as code - Free your coding mind...

"Unfortunately, no one can be told what the Matrix is. You have to see it for yourself."

Morpheus, The Matrix

March 7, 2012 | Comedy | submitted by ToYonos

Groundhog Day

boolean foundLove = false;
Man phil = new Man();
Woman rita = new Woman();

while (!foundLove)
{
    Day today = new Day();
    new Song("I Got You Babe").play();
    today.wakeTheGroundhog();
    switch (phil.getMood(today))
    {
        case "love" :
            foundLove = phil.triesToGet(rita);
            break;

        case "joyful" :
            phil.helpsPeople();
            break;

        case "sexual" :
            phil.tricksAWomanToSleepWithHer();
            break;

        case "thirstForKnowledge" :
            phil.learnsSomeStuff();
            break;

        case "suicidal" :
            phil.killsHimself();
            continue;
    }
    phil.goesToBed();
}
Vote up this code1

| Horror | submitted by ToYonos

Sleepy Hollow

<html>
   
    <body></body>
</html>
Vote up this code0

| Comedy | submitted by Ben Howdle

Home Alone

if($.contains('#kevin', '.mcallisterHouse') == false){
    kateMcCallister.speak('KEVIN!');
    kevin.action('\0/');    
}
Vote up this code0

| Adventure | submitted by Sandy

Finding Nemo

$("ocean").find("#Nemo");
Vote up this code0

| Comedy | submitted by Simon

Forrest Gump

public class ForrestGumpMovie {
Retard ForrestGump = new Retard();
Slut Jenny = new Slut;
public function ForrestGumpMovie() {
if (ForrestGump.loves(Jenny)) && Jenny.hasAids()) {
Jenny.delete();
System.out.print("Why doesn't Forrest get AIDS?");
}
}
public class Slut () {
public static Boolean hasAids() {
return true;
}
}
public class Retard () {
public static Boolean loves(Slut slut) {
return true;   
}
}
}
Vote up this code0

March 6, 2012 | Action | submitted by Stef

The Big Lebowski

while (1) {

    WhiteRussian.Drink();
    Bowling.Play();

}
Vote up this code0

| Science Fiction | submitted by coding buddha

Star Wars – A new Hope

 private var _movie:IGeorgeLucas = StarWars(new Hope())
Vote up this code0

| Comedy | submitted by ToYonos

Ghostbusters

public boolean isCrossingTheStreamsBad(String situation)
{
    return situation == null || situation.equals("Gozer is coming") == false;
}
Vote up this code0

| Drama | submitted by ToYonos

Forrest Gump

Chocolate[] chocolateBox = ChocolateBox.newInstance();
Runnable forrestGump = new Runnable()
{
    public void run()
    {
        try
        {
            long timeout = 101145600000L; // 3 years, 2 months, 14 days, and 16 hours.
            wait(timeout);
        }
        catch (InterruptedException e)
        {
            throw new NotSupposedToBeStoppedException();
        }
    }
};

forrestGump.run();
eatChocolate(chocolateBox[(int)(Math.random() * chocolateBox.length)]);
Vote up this code0

| Action | submitted by Matt

Jurassic park

If dinosaur.location = this.location then
Run
End if
Vote up this code0