8 ms·
JavaScript lacks a real library/module system, namespaces and OOP facilities. I usually spend more time maintaining a JavaScript program than a program written
by Jacobi 14y ago
JavaScript lacks a real library/module system, namespaces and OOP facilities. I usually spend more time maintaining a JavaScript program than a program written in Java/C# with equivalent size.
That being said, my skills in JavaScript are limited.
- yaz 14y agoWhat's wrong with using dojo for a module system, namespaces and OOP?
- Jacobi 14y agoYou can do OOP in any langage and there is nothing wrong with dojo. But from my limited experience, maintaining large programs written in JavaScript is a tedious job (each program reinvent it's own OOP semantics)
- factorialboy 14y agoUmm .. On the server, node_modules / NPM driven modular system (AMD) works quite well. RequireJS can be used on the client as well.
- ajuc 14y agoI especially like the fact, that "importing" module in node returns imported module, instead of putting it into namespace like it does in Java. It's much better design. var myModule = require('./module'); instead of import com.company.module.Sth;