So Alas finished her DinoTam poetry contest. I am reposting my entry here because I can. I apparently cannot follow directions. Instead of an ode, I wrote code
//Recommend using DinoBob, DinoFred, or DinoBarneyThePurple classes instead
public static Dinosaur::DinoTam
{bool isHungry = true;
bool isAsleep = false;//Note: the “edible” check is unreliable. Anyone interfacing with the “DinoTam” class
//is responsible for ensuring that inputs to this method are acceptablepublic void doEat(object Prey)
{if(Prey == edible)
{nomnom(Prey);
isHungry = false;
//some sort of bug in this method. Won’t compile without this next line
isHungry = true;}
}
//Intern hasn’t finished this function, contains no “wake” triggers
public string doSleep(Rock Rock)
{
string returnvalue;if(Rock.isSunny == true)
{
returnvalue = “zzzzz”;
DinoTam.isAsleep = true;} else
{
returnvalue = “DinoTam only likes sunny rocks, what what.”
}return returnvalue;
}
//undocumented bug causes this method to trigger randomly
//probably user error
private void doMoisturize(object lotion)
{
if(lotion.isSmoothAndMoist)
{
lotion.apply(DinoTam.skin);
DinoTam.ContentedPurrGrowl();
}}
//users keep complaining about this behavior. Assure them it is their own fault
//and DinoTam code is working as specified
public void responseToAlasOrders(object Orders)
{
DinoTam.DoNothing();
DinoTam.GiveAlasTheEye();
DinoTam.doEat(Orders);}
//!!Remember to take this out before public release!!
public void doButtSecks(object victim)
{if(victim.DoesNotSuspect && (checkRelativePosition(victim, DinoTam) == true)
{
DinoTam.Yell(“Surprise Buttsecks!!!”);
victim.assault();
}}
private bool CheckRelativePosition(object victim, Dinosaur DinoTam)
{
if(victim.IsInFrontOf(DinoTam)) return true;
else return false;}
}
I think I like code better than ode! Loled my ass off! But make sure you take the buttsecks out before release
(Thanks for writing code even us noobs can read… my last programming class was in high school.)
Glad it was clear – I tried hard but once you know code it’s hard to remember what bits are readable to laymen and which aren’t. I did stick in a few jokes for the hardcore but mostly was aiming for “my manager could read this” style. ;-p
“DinoTam only likes sunny rocks, what what.”
That has to be my favorite line! I’m not sure though. It was all just so funny and perfect. Obviously it was a hit with many other people as well. You can write DinoTam code any time you like as far as I’m concerned.
I had a ton of fun writing it. This whole DinoTam thing has spurred a bizzare amount of creativity in the blogging community.
So awesome
code is poetry to some anyway isn’t it?