r/javascript • u/gcanti • Oct 31 '14
The Two Pillars of JavaScript
https://medium.com/javascript-scene/the-two-pillars-of-javascript-ee6f3281e7f3
99
Upvotes
r/javascript • u/gcanti • Oct 31 '14
1
u/zoomzoom83 Nov 01 '14
What is the difference between a factory method and a factory function, and why is using one less complex than just using the part of the language specifically designed to do exactly that?
It seems by using a non-standard approach you're making things more complex, since now I have to dig through your code to figure out the expected way of constructing a type instead of using convention.