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.

0

u/[deleted] Mar 26 '18

[deleted]

0

u/vinnl Mar 26 '18

We've automated most of the maintenance, that allows you to move quickly with the ecosystem :)

1

u/thilehoffer Mar 26 '18

I am a .net full stack dev. Our main application was started 15 years ago. I don’t move quickly on the front end. Too much change. We have moved to GIT for source control and adopted TypeScript. But for the web we use KendoUI, JQuery and Twitter Bootstrap, no other libraries. Our team of six full stack devs evaluated Angular 2 but hated the complexity. We loved TypeScript though. It’s good for me to learn what the web developers are up to. Thanks for the information. Nice article too. It’s a balancing act trying to keep up with the ecosystem especially for full stack devs who may only spend 20% of their time on client side development. We also have to keep updating legacy code in web forms, server side MVC and webAPI too...

0

u/uptownjimmy Mar 26 '18

I cut my teeth on my boss' custom Web Forms + jQuery preferences: he thinks that stuff is as good as it will ever get. I was about 1.5 years into my career when I started to suspect that there might be better ways. jQuery gets pretty nasty when the business logic is sufficiently complex. That's the working definition of spaghetti code, if you ask me.

Then 2 years ago we all sub-contracted out to a firm using .NET MVC, Web API, and Angular, and it has been (mostly) amazing. The Angular stuff, in particular, just felt so much better, so much cleaner, so much easier to reason about. I hope to never go back to day-to-day jQuery again...

-1

u/thilehoffer Mar 26 '18

For a new project, webApi + Angular would be fine. But we have to maintain the old stuff too...