4 ms·
Not music... cooking. Write a recipe. It's the same as code. To bake a cake you need explicit instructions, including time, temperature, and exact ingredients.
by daly 6y ago
Not music... cooking. Write a recipe. It's the same as code.
To bake a cake you need explicit instructions, including time, temperature, and exact ingredients.
You need 'subroutines' for things like icing, which is another recipe.
And when you write a recipe for me, it is not sufficient to say "stir"... you need to say what the stopping condition is. The stopping condition has to be 'measurable'. For example, I can't cook hamburger because I can't tell when "all of the red" is gone (I'm color blind to red-green).
There are 'user interface' issues... cake decorating.
Plus if someone find out that your 'cake' is over a month old, they are sure to insist it needs to be 'redone', just like real code.
- searchableguy 6y agoI love cooking and I program. I like the slight monotonous process of cooking such as chopping vegetables finely and measuring with a beaker.