Tuesday, January 08, 2008

How to Triage an Office Floor

Sometimes explaining things to my husband this way helps.

onError call spouse
sub TriagePaper(currentPaper)
While floor.containspaper = true
if currentPaper.category = trash
PlaceinPile(trash,currentPaper)

elseif currentPaper.category = urgent
PlaceinPile(urgent,currentPaper)

elseif currentPaper.category = money
dance()

else
PlaceinPile(tobesorted,currentPaper)

end if

end while


OK, blockquotes were not the right choice for indenting - suggestions, anyone?

2 comments:

Anonymous said...

I still think you leave a lot out...like does the putInPile method also know about the floor? if so, how?

What instantiates the "currentPaper" object?

I mean, c'mon...

Unknown said...

Oh god, can you write one to get a teenage boy with ADHD to do the dishes and take out the garbage??? And do you speak XBox?!?!?!