Object Oriented Cooking
Somewhere between my conversation with Geoff last night regarding programming and my conversation with Kristin last night about the brownies that she and Beth baked, I woke up this morning with a great idea: Objecct Oriented Cooking. Let's go through an example...
Dim Oven As Appliance Dim BrownieMix As Ingredient Dim Oil As Ingredient Dim Egg As Ingredient Dim Water As Ingredient Dim Spatula As Utensil Dim Pan As Dish Dim MixingBowl As Dish Oven.Preheat(350) Set Pan.Size = [13,9] Pan.Grease Egg.Quantity = 1 Oil.Quantity = 0.25 Oil.Unit = 'cup' Water.Quantity = 2 Water.Quantity = 'tablespoon' Mix(MixingBowl, [BrownieMix, Oil, Egg, Water) MixingBowl.Contents.Move(Pan) Pan.Bake(25) // Subroutine for mixing ingredients: Sub Mix(MixIn As Dish, Ing As Array) For P = Ing P.Move(MixIn) MixIn.Contents.Stir End For End Sub
Can't you just taste the goodness?