logoalt Hacker News

xmprt • today at 4:20 PM • 2 replies • view on HN

This joke is made a lot but I think most good developers take care in considering the npm dependencies they install. You can get a ton of dependencies pretty easily by just installing very popular ones like react, tailwind, nextjs, etc. If there's ever a dependency that I'm not familiar with then I make sure to take at least a cursory look over the repo to make sure it has a decent number of stars/community, is well maintained, has multiple contributors, etc.


Replies

ang_cire • today at 4:34 PM

That is great, but the reality is that your OS, the productivity software you use daily, and the dependencies downstream of the ones you review, are not actually being checked by you for code quality.

Part of using software is just going off how well it works.

When one Linux flavor starts to have issues, most people don't do a dissection on why, they just switch distros. Or web browsers (I've lost count of the back-and-forth between FF and Chrome performance over the years, nevermind all their precursors). Or office suites.

Pretending that the code is what really matters, and not what the code does, is elevating the paint quality over the painting.

➕ show 1 reply
andrewstuart • today at 5:01 PM

>> I think most good developers take care in considering the npm dependencies they install

Evidence?!

No they don’t - developers just fly past installing whatever they need to make the damn thing work.

They don’t sit there thinking carefully about what each dependency means.

➕ show 1 reply