Der Blog

Open sauce

Yes, I was bored...

class Gravy extends Sauce throws UtensilNotFoundException {
    public Sauce(Ingredient meatJuice, Ingredient flour) {
        Utensil whisk = kitchen.findUtensil("whisk");
        Utensil bowl = kitchen.findUtensil("bowl");
        bowl.add(meatJuice);
        bowl.add(flour);
        do {
        whisk.whisk(bowl);
        } until (bowl.contentsAreSmooth());
     // try to serve in a jug; if there is no jug handy, just serve it from the bowl
        try {
            Utensil jug = kitchen.findUtensil("jug");
            if (jug.isDirty()) jug.washUp();
            bowl.pourInto(jug);
        } catch (UtensilNotFoundException e) { }
    }
}

Recipe by me, but put in the public domain.

[ Entry posted at: Sun 15 Jan 2006 13:54:22 GMT | 0 comment(s)... | Cat: Funny ]

Add Comment

Validate : XHTML / CSS / RSS / ATOM