r/javascript • • Mar 26 '18

Modern Frontend Developer in 2018

https://medium.com/tajawal-engineering/modern-frontend-developer-in-2018-4c2072fa2b9c
558 Upvotes

91 comments sorted by

View all comments

18

u/thilehoffer Mar 26 '18

Quick question about package managers. Does it make sense to use more than a few packages and always be keeping them up to date? Why not just add a package to your site and leave it? Wouldn’t updating multiple packages to a new version increase your risk of issues / bugs with each deployment?

11

u/vinnl Mar 26 '18

There's always potential security issues and bugs in the versions you're already using, which means it's good for you to update. Furthermore, there's going to be new features that, if not you yourself, other packages you are or will be using might want to use. For example, if you're still on React 0.13, you won't be able to introduce react-redux to your project without also upgrading React, which makes the cost of introducing that a lot larger.

6

u/thilehoffer Mar 26 '18

Sure, but do you need to always be current? Wouldn’t be better to update all your packages once per year. Then do a build with no other changes, QA that release and deploy? Seems like that would be much less risk, and a lot easier then always updating.

1

u/planetary_pelt Mar 26 '18

It's just that it can become harder to update the larger the gulf become between you and latest. And you need to update eventually, else you're on unsupported software. So regular updates just become a way to pay off technical debt.

1

u/thilehoffer Mar 26 '18

es, QA that release and deploy? Seems like that would be much less risk, and a lot easier then always updating.

True. There probably is no correct path for every scenario. Some site probably put a premium on staying current while others put a premium on stability.