You’ve made your case to stay small, stay bounded, stay modest, but the whole web seems to be rushing in the same JS-for-everything direction. So what to do?
You’ve looked for another technical solution to propose.
Right now, if you’re looking for a technical solution that is a little more modest, it’ll be something like server-side generated HTML, Stimulus which is really nice, and view-models in a few spots. I go over these in
Part 2 of the book.
And there are other approaches emerging. Svelte and Reef are modest alternatives to the big view-models. Trimmings is Stimulus-inspired and gives a reactive feel to server-side generated pages. Also, Chris Ferdinandi’s been doing a lot of good teaching the basics of Vanilla JS, and selling the idea of the Lean Web.
With time, these will change, and new approaches will come up, and you might be inventing one. But you’re not here for the JS-framework-du-jour.
“Will this thing be around in 5-10 years?”
“What’s special about the companies that keep away from the heavy-JS nonsense?”
My answer to those questions: bet on modesty.
For example, in the chapter
Upgrading (the idea of) dependencies, we look at what it means to be dependent, and that the opposite of being dependent is not merely being independent.
I also go over the role of React in today’s ecosystem. It’s a popular default starting point, but like other such default starting points that history brought us, it will be replaced too.
And there’s a bit about your role in the broader organization you’re working for. How you’re not just a developer, how building an app is a lot more than building the software, and how the business that you’re in might be immodest in the first place. And if you are to sell your ideas, you need to learn to speak the “buyer’s” language and keep your ego out of the way.
Part 2, I make the case for
Hope this helps.