Were you just lucky enough to get into the right jobs that keep you doing work that is highly in demand for the moment? Looking back, I kinda wish I started my career with a slow-moving Java or .NET enterprise work because, although not being very sexy, it is comparatively stable to front end web development.
Besides, just from looking around, front end pays less and it’s easy for most companies to find cheap “good enough” front end developers.
As far as being “lucky”, it’s not luck. If I see my employer’s stack falling behind the market, it’s time to jump ship. Why would I work at a company all day and then come home at night trying to keep myself marketable instead of just changing jobs?
There is usually a job out there where the “must haves” are $old_tech and the “nice to haves” are $new_tech, rinse and repeat.
You could always take the r/cscareerquestions tact and “learn leetCode and work for a FAANG” (note sarcasm).
You manage your career by being able to deliver projects or at least participate in meaningful manner and then building meaningful work-relationships.
They also have tend to have different motivations, whether that be a family or unrelated hobbies.
Tbh sometimes I envy people like this and sometimes I dont.
Also, programming is not the only skill that will help you in your career as an engineer.
These people are fine not being on top and are consciously or unconsciously accepting the risk of falling off the rails. The risks have been fairly low for the past decade or so since software's role has just kept growing and growing in society and, at least for the foreseeable future, that growth doesn't seem likely to slow significantly.
Not a strategy I'd pursue but it doesn't seem like an unreasonable bet.
A great manager will allocate sprint points to you exploring a new area of technology as long as you can somehow realize value for the business as a result of that exploration.
There always research tasks and proof of concepts that allows you to learn and try out new things.
I guess we are now entering into a new world, so we will see. But beside that, there is so much demand and opportunity, I don’t see why I should fear for my career. What are “the rails” and what does falling off them look like?
The other thing is, new stuff tends to just be repackaging of old stuff. Once you’ve seen a couple cycles of this you stop worrying about it.