Monthly Archives: May 2008

Automatic type coercion sucks!

By trying to make your life simpler, JavaScript makes your life really hard. This snippet meant one hour of debugging: var w = canvas.getAttribute(‘width’); var neighb = [ -1, 1, w, -w ]; Looks innocent enough, n’est-ce pas? Unfortunately, canvas.getAttribute() … Continue reading

Posted in Programming, Randomness | 629 Comments

Spaghetti with Sardines-Tomato-Sauce

Quick and easy, but delicious. And has nothing to do with computers. Ingredients: Spaghetti Canned sardines (in oil) Tomato puree (if concentrated, dilute with water) Onion Garlic Fresh parsley Fresh basil Olive oil Parmesan cheese Calories: A lot. If you … Continue reading

Posted in Food | 849 Comments