Re:Stop Using Constructors in JS (2012)
by epidemian on Thursday November 06, 2014 @10:47AM
(#8567518)
Over-engineering sounds a bit of a stretch in this case. The article compares using a normal function that returns an object vs using a special function that needs to be called with different syntax and that magically returns `this`. The former doesn't seem more over-engineered to me, in fact is seems simpler than the later.
[ Parent
| on HN ]
There are no comments on this comment yet.