Skip to content

Monthly Archives: December 2011

How to configure vim

Everyone has their own opinion about this, but I found this post to be useful.

Where to declare javascript variables

I’ve been reading the new edition of Flanagan’s “Javascript: The Definitive Guide”, straight through, and I thought I’d make some posts about what I’d learned. In javascript, variables are implicitly declared at the beginning of the function where they are used. So, in the following block, global = ‘global’;   function f() { console.log(global); var […]