Hacker News new | past | comments | ask | show | jobs | submit login

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.



Umm .. On the server, node_modules / NPM driven modular system (AMD) works quite well. RequireJS can be used on the client as well.


I 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;


What's wrong with using dojo for a module system, namespaces and OOP?


You 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)




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: