Hacker News new | ask | show | jobs
by wwwtyro 5004 days ago
Thanks.

> Instead of using prototypes and functions shared among all instances of the same type of object, it uses closures for each instance.

So, is this generally considered a poor practice? I usually only use prototypes and shared functions when I am going to be instantiating the same type of object many times (when doing lots of vector math, for example).