r/programming • u/Xaneris47 • Sep 04 '26
Avoid adding new library to project: 10-year retrospective
https://pvs-studio.com/en/blog/posts/1408/
170
Upvotes
r/programming • u/Xaneris47 • Sep 04 '26
View all comments
Show parent comment
3
u/mpyne Sep 05 '26
The iron rule is “It Depends” and that’s the case here.
Each new dependency carries costs (in terms of integration maintenance and later upkeep and version tracking) and, hopefully, reduces other costs (development burden, testing, bug fixing) to make it worth it.
It is by no means a rule that anything that can be replaced by a dependency should be.
The rise of AI also changes the game the other way. It’s quite literally never been easier, if you have a very simple need that is 5% of some popular dependency, to just have the AI correctly implement that 5% directly in your repo, without pulling in the extra dependency.
AI can also make it easier to bring in new dependencies, my point is that the costs on both sides of the equation have moved, not just on the side of ease of integration.