Metal Guitarist Forums banner
1 - 8 of 8 Posts

·
Mutes the Meat
Joined
·
10,233 Posts
Discussion Starter · #1 ·
We are learning about object oriented programming this week, and the instructor has told us get personal with microwaves. I'm amused.

If Door Switch State = Closed AND Microwave Emitter = On then Turn on Interior Light
If Time = 0:00 Sound Buzzer/Beep Three Times
If Open then Stop Microwave, Turn on Light
If Closed then Wait for Input from Control Panel
 

·
Party Röcker
Joined
·
1,357 Posts
You're not trying hard enough until you have haiku pseudocode.

Code:
If (loud infant)
    Fucking goddamn finally
        Years I have not slept
Code:
If (dry noodle cup)
    Oh it's party time
    Fire brigade arrives
Code:
If (have nothing else)
    Go out with bang, just because!
        Aluminum foil
Code:
While (waiting around)
    While (nobody is watching)
    Scratch your balls... why not?
Jeff
 

·
Registered
Joined
·
1,753 Posts
How about one that actually compiles?

A fish dinner:
Code:
use Carp;
unpack fish, spices;
croak fish if $alive;
study recipe, pop in, time;
BEGIN {meal};
tied %bib;
scalar fish;
fork, split;
sqrt lemon;
glob tartarsauce;
chop, open(MOUTH), chomp;
unlink flesh;
truncate bone, chomp;
untie %bib;
push plate;
END {meal};
sleep now;
 
1 - 8 of 8 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top