My Hackergotchi

Updated: Never — Philip's Blog

Now featuring regular updates!

Sun, 08 Apr 2007

21:07 – Cooking is like software

Before: hungry hacker After: sated hacker, evidence of much creative goings-on in the kitchen

Has anyone else ever compared the proces of coding to cooking? You start out hungry in a relatively clean kitchen with empty pots and a single fork. Before you know it, there are mushrooms in one pot, bacon in another, and you think 'mmm, tomatoes' and there they go. Some pasta soon joins the party and then herbs and cream come along too.

I have no idea what I'm eating could be called, but while cooking it up, it felt a lot like coding. Empty file, soon filled with many interesting functions, then some data happens or perhaps a piece of hardware comes along. More files start happening. You forget what you're working on from a macroscopic perspective but you're having so much fun it doesn't really matter.

And soon it will be time to refactor. Take a step back. And do the dishes.

Yum yum. The food. Not the code.

To answer your question: of course programming has been compared to cooking. And not by just anybody but by Donald Knuth. Very early in vol. 1 of his "The Art of Computer Progamming".
You may want to read it, and I sure dare not try to tell what is there in my own words.

Posted by Bobson at Mon Apr 9 01:29:20 2007

Name:

Email:

URL:

Comment:


Prove that you are not a spammer: