I have UIKit (iOS) code that’s over a decade old and still compiles and runs perfectly (it might look a bit off on new hardware form factors - eg content bleeds into the notch - but that’s about it).
I have Python + Tkinter code that’s close to two decades old and still runs great (doesn’t look great tho but it didn’t look great at the time either).
I have some vanilla JS websites that are about as old and still work great.
As other commenters have noted, boring stable choices are there. Ignoring them for the fancy novel brittle stuff is entirely on the programmer.
If as a technologist you can’t imagine companies making money selling software to happy customers without relying on the brittle trendy framework du jour, my only advice would be to spend less time making silly bets with strangers on internet discussion boards and more time looking at boring profitable companies.
A lot of devs justify the time they spend keeping up with the technological Joneses as necessary to keep pace with current trends (especially in UI). I think it is a bit of a cope though, because users just want to solve their problems.
They don't care about React or htmx. They just want something that fixes the problem.
This is actually very freeing: meet a real need and you don't have to believe that software development consists on running on a treadmill of constant changes for their own sake. Just do the job competently.
We don't live in a world where every dev can choose the technology they work on.
Most of the time it is dictated by the whims of corporate(by making frameworks/tools as part of a job requirement) or by the mob(teams need to collective decide what technology to use).
I have Python + Tkinter code that’s close to two decades old and still runs great (doesn’t look great tho but it didn’t look great at the time either).
I have some vanilla JS websites that are about as old and still work great.
As other commenters have noted, boring stable choices are there. Ignoring them for the fancy novel brittle stuff is entirely on the programmer.