by alabhyajindal · 2y ago · 0 comments
I started web development just 2 years ago using React and at the time I didn't know any of the traditional frameworks like Rails, Django or Laravel. I learned Rails recently and have been using it for my side projects since. I'm having a great experience!
When I see the headlines praising a frontend framework that's been around for < 5 years, I roll my eyes. I imagine it's been written by someone like me 2 years ago, who hasn't used traditional frameworks.
Then I moved to doing all my projects with Astro/Svelte and webapps with SvelteKit. I was surprised at how good and fun it was. The templating languages less esoteric, more integrated. Reactivity was something I never even dreamed of with a hard line on JS. All the while, the websites got better. I could finish them more quickly and there was still no or a miniscule amount of JS shipped by default. I could also, when making a content-driven website with Astro, easily reach for Svelte for a small bit of interactivity / reactivity. I could've just as easily used Alpine or whatever else someone might recommend.
That's to say, I've found a comfortable DX in current-gen JS frameworks, while finding the server-side giants a bit too sturdy for my use. Reading about new frameworks is fun to me, because I can easily switch from Svelte to something else on my Astro sites, if I find something that fits my tastes even better.
I don't get excited about learning a new frontend framework because I'm fairly certain it won't allow me to do something new. It may be more convenient in terms of syntax or have fewer client side code being shipped, but it doesn't enable me to do something in terms of functionality I couldn't already do.
I would prefer pick one framework and get better at it, rather than learn the templating language of 5 frontend frameworks.
I'm not sure that's true. Time has went that direction, for sure, but I don't think historical backend web devs have migrated to react. Mostly front-end devs expanding their horizons and younger devs starting there.
Really? Back in the day, myself and my peers weren't "backend web devs" we were just web devs. Stuff started shifting to the frontend and we all learned Backbone, Angular, React, etc because that's the way the industry went. I think a LOT of us migrated to React, maybe not completely, but who can call themselves a web developer these days without at least some experience with FE frameworks?
I still really limit my JS to just improving the client-side UI/UX.
I love that people are pushing back on the SPA architecture everywhere (though SPAs are still the right choice for some apps). Some people are pushing back like you (returning to backend renderering), and others are pushing back like the implementer/poster by trying to extend the original intent of REST architecture (not JSON apis the term has come to mean).
I think the htmx architecture is brilliant, though it's not something I would use for the majority of my projects (it doesn't fit the use case).
I think what folks who have come to web dev recently don't understand the historical tradeoffs that led to SPAs or the current web dev ecosystem. It was terrible to build websites, but it was worse to build cross-platform applications using the existing tools and delivery systems. The browser solved a lot of that, and SPAs were an attempt to upgrade web architecture to support that need. People forget the positives because of how ubiquitous they've become and only look at the negatives.
I'm glad we're moving away from the SPA-only world, but every web framework that we use nowadays has been influenced by the advent of node+SPAs
I've worked with countless younger junior engineers who know React reasonably well, and largely think Rails is old "legacy" crap they don't want to deal with. And to be fair, using Rails as a dumb JSON api does disrupt much of the convenience of using Rails. But I never understood how people could so under-appreciate the tooling and structure that Rails provides.
12 years ago Rails was just as hyped as React is now. In a few years junior devs will be pooh-poohing React the same way as they are doing to Rails.