January 23, 2009

Easy object-oriented Javascript the Python way

Posted in Software at 00:47 by graham

Javascript is not an opinionated language. At it’s heart it is a hash map. You can layer pretty much any idiom you want on top of it. I’d like to make it look like Python, and it’s pretty easy to do. They both are dynamically typed, have functions as first class objects, and can treat most types as hash maps.

Let’s assume code for a whimsical Moose Observation Project, and translate it from Python to Javascript.

Read the rest of this entry »

January 19, 2009

This is me

Posted in Behaviour, Misc at 06:03 by graham

Have I told you that I have never owned a TV, and never watch it? http://www.theonion.com/content/node/28694