Hacker News new | ask | show | jobs
by brushfoot 1288 days ago
There's no free lunch. JavaScript has the largest package ecosystem in the world. It's great for finding "free" UI components or server libraries for projects, but you pay for it in maintenance costs.

That said, I don't think it's as bad as this article makes it out to be. There's this kind of maintenance in a traditional server-rendered Django/Rails app, too, on both ends. You can self-host your JS scripts or fetch them from a CDN instead of using Node, but they're still deps. You still have to worry about upgrading and vulnerability scanning. It's just invisible now. The onus is on you.

1 comments

I've got perl web apps that haven't been touched for 15 years (aside from a single change from a flash <object> to <video> in the template) that still perform their function perfectly well
Sure - if you don't need rich UI interactivity, you can get by with a lot less. Plenty of sites don't and should.

What I like about Node, though, is frameworks like Next.js that are the best of both worlds. You can do traditional server-side rendering using React components, so you can easily add as much/as little client-side JS as you need.

With Next you use the same package manager for the front end and back end. And you get code sharing and access to that huge ecosystem of libraries.

But needs and skillsets change the equation, definitely.