In 2008 I was in my mid 30s, had been working at one job for nine years as a C/C++ bit twiddler and writing COM/DCOM objects that interop’d with VB - in other words I had a skillset they was woefully out of date. I got lucky and found a job that let me pivot into being a modern “enterprise developer” and barely survived rounds of layoffs for the next three years.
I learned my lesson. For the last 10 years I’ve kept my resume competitive with whatever the $cool_kids technology is and haven’t had a problem competing in the market.