January 2010
2 posts
Raganwald's favourite interview question →
A discussion about interview questions from Raganwald: How might you design a program that lets people play Monopoly with each other over the internet?
Jan 12th
Researching how javascript prototype inheritance works. Methods defined in the constructor are copied for each instance, whereas methods on the prototype are shared. When you set the prototype of a “class”, you need to reset the constructor: B.prototype = new A; // Define sub-class B.prototype.constructor = B; And to call the parent class’s...
Jan 12th