A very interesting discussion by Brenda Eich on 2 different patterns.
http://www.aminutewithbrendan.com/pages/20110216
For me, the most important takeaway is that all modern browsers have optimized prototype chain retrievals, so defining methods on an object’s prototype is no longer as expensive as before.
Recent Comments