Hacker News (curated)new | past | comments | ask | show | jobs| show hidden

It could push us further into dependency hell though, as people look for a package that does a simple task instead of the risk of expanding their bug/attack surface area, assuming that the library they depend upon has itself been checked (and the same for its dependencies all the way down).

Trying to keep code small could backfire by ballooning dependency on dependencies to do more of the work.



No, adding a "package that does a simple task" and is exposed to untrusted input expands "your bug/attack surface area". It isn't an alternative to "expanding your bug/attack surface area." People who are trying to keep code small will choose 400 lines of their own code that does only what they need instead of 4000 lines of code in a dependency.

When op talks of keeping code small I’m pretty sure they’re talking about all code including dependencies.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact | github