Hacker News new | ask | show | jobs
by factorialboy 5126 days ago
Umm .. On the server, node_modules / NPM driven modular system (AMD) works quite well. RequireJS can be used on the client as well.
1 comments

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;