Carl-Erik Kopseng

31%
Flag icon
The functional style is an interesting alternative to the pseudo-classical constructors, but comes with its own limitations. The two most obvious drawbacks of this style of coding are that every object keeps its own copy of every function, increasing memory usage, and that in practice we aren’t using the prototype chain, which means more cruft when we want to call the “super” function or something similar.
Carl-Erik Kopseng
drawbacks of the Module pattern / functional inheritance
Test-Driven JavaScript Development (Developer's Library)
Rate this book
Clear rating