1
Ask HN: Why do JavaScript developers favour many, tiny dependencies?
The more I delve in to the world of Javascript the more I come across projects such as:
* is-root: https://www.npmjs.com/package/is-root
* is-even https://www.npmjs.com/package/is-even
Often these are whole npm modules that comprise of a single line of code.
I've never seen anything quite like it when working with Java and Python.
Can anyone explain why? It seems to me adding a dependency I have to suck across the network, that may introduce breaking changes (or just disappear) is something that shouldn't be taken lightly. Doing it for a single line of code (that realistically won't need to change anyway) is borderline insane.
Am I being too paranoid or am I missing something?