3 ms·
People in web development tend to allow dependencies to auto-update. It’s kind of a necessary evil in that the alternative is to do it only manually and then fa
by brabel 1y ago
People in web development tend to allow dependencies to auto-update. It’s kind of a necessary evil in that the alternative is to do it only manually and then falling behind on security vulnerabilities updates and potentially getting hacked.
- victorbjorklund 1y agoBut by that argument, if you try to write all of the code doing the functions just by yourself and not bring in any dependencies, and that code is now five years old and you haven't touched it for five years, you might have some security vulnerabilities too. It's not like you are always writing better code than the open source projects are. Unless you are one of the best developers in the world, then sure, then that might work, but for the rest of us, we are probably not guaranteed to ever write code that is 100% bug free for five years.
- nottorp 1y ago> and that code is now five years old and you haven't touched it for five years, you might have some security vulnerabilities too Security vulnerabilities grow in unattended code then? Or they were there from the second the code was written but with some luck someone noticed them and fixed them? Old code isn't necessarily insecure just because it's old...
- victorbjorklund 1y agoDoesnt matter if you count them from the second the code is written or when they are discovered. The same issue is in code written by someone else or yourself.
- nottorp 1y agoThe point is that freshly updated code has the same chance of being buggy. You want me to believe that in the npm "ecosystem" they have LTS branches that only get security updates? For anything besides maybe a few large libraries with companies behind them?
- benchloftbrunch 1y agoWhile ironically leaving themselves open to supply chain attacks.