Comment by z3t4
11 years 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.
In a perfect world yes, but in the real world, with unreliable dependencies and their imperfect management, it doesn't come for free.