6 ms·
The less code you write, the less code you have to maintain. Even if it's just one less thing, it's a win. The comonJS module pattern also helps tremendously,
by z3t4 11y ago
The less code you write, the less code you have to maintain. Even if it's just one less thing, it's a win.
The comonJS module pattern also helps tremendously, as your requires are block/function scoped. It makes it trivial to refactor (remove/rewrite) code.
- kbart 11y agoIn a perfect world yes, but in the real world, with unreliable dependencies and their imperfect management, it doesn't come for free.