3 ms·
What do you think that boilerplate code is made of? Closures of course. You simply can't make large scale software using just closures.
by wvenable 17y ago
What do you think that boilerplate code is made of? Closures of course. You simply can't make large scale software using just closures.
- BenjaminCoe 17y agoI disagree, regarding JavaScript's ability to scale. It is quite easy to implement classical inheritance inside JavaScript, public and private methods really do not seem like a must have to me for code to be 'scallable'. It seems to me that these concepts are loosely enforced (or not present) in many popular web languages already.
- mnemonik 17y agoYup, look at Python. Private methods are private by convention (leading underscore), not because the interpreter enforces privacy. Python code bases scale easily, in my experience.