Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A short story about a programmer, written in programming.
function StartDayAgain(){
sarah.wakeUp();
// What if my life was like a movie? In space?
sarah.goto("Bathroom");
sarah.exit(sarah.pajamas);
sarah.clean(sarah);
sarah.clean(sarah.teeth);
sarah.enter(sarah.clothes);
// I'd jump into my spaceship, and fly off to
// Astroexplorer Headquarters, reporting for duty.
sarah.goto("Garage");
sarah.enter(sarah.car);
sarah.goto("Monolith Software Corp.");
sarah.exit(sarah.car);
sarah.goto("My Cubicle");
// And I'd be the most popular gal on board.
// Everyone would love Agent #001, SARAH THE SPACE SPY
if(sarah.meets("coworker")){
sarah.say("Hi.");
}else{
sarah.say(null);
}
sarah.enter(sarah.cubicle);
// Yes, Agent #001 uses her hacking skills to break into
// alien computer networks, steal their secret technology,
// and help humanity take over the galaxy!
while(beforeTime("12:30")){
if(numTasksLeft>0){
sarah.work();
}else{
sarah.pretendToWork();
}
}
// Hold up, gotta refuel my engines.
sarah.exit(sarah.cubicle);
food.enter(sarah);
sarah.enter(sarah.cubicle);
// And, back to my mission! You think SARAH THE SPACE SPY
// would simply walk away from a long list of impossible tasks?
// Ha! I may rest, but I do not give up.
// AGENT #001 NEVER GIVES UP.
while(beforeTime("17:00")){
sarah.pretendToWork();
}
// Even though SARAH THE SPACE SPY could take on the whole
// universe by herself, she's loyal to the human race.
// She's selfless. Always ready to take one for the team.
while(beforeTime("17:15")){
sarah.pretendToWork();
}
// Thanks to SARAH, humanity is safe once again. All in a day's work.
// Now, it's time to fly back to my planetary base station.
sarah.enter(sarah.car);
sarah.goto("Home");
// Fade to black. Roll credits.
sarah.exit(sarah.car);
sarah.goto("Living Room");
// Yeah. That would be a great movie. I'd totally watch it.
sarah.watch("Classic Sci-fi Shows on Netflix");
sarah.watch("Space Documentaries on YouTube");
sarah.watch("funny cat gifs");
// One day, I'll write up that sci-fi young adult novel.
// I swear! I made it my New Year's Resolution again this year,
// because I haven't given up. Agent #001 never gives up.
sarah.goto("Bathroom");
sarah.exit(sarah.clothes);
food.exit(sarah);
sarah.clean(sarah);
sarah.clean(sarah.teeth);
sarah.enter(sarah.pajamas);
// I'm just too busy... There's no time right now.
// I just gotta keep on working, keep on moving up,
// and one day, I'll have all the free time in the world!
// Then... Then, I can start living my life.
sarah.goto("Bedroom");
sarah.sleep();
// ...one day.
StartDayAgain();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment