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.
Comments
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.