Well, guess what? Now I'm older and I'm more expensive. Thankfully I saw it coming, and I have been saving diligently along the way. I'm not rich, but my lifestyle costs are not insane and I can continue to save from now until the gravy train pulls into station.
At that point, god willing and the creek don't rise, I can afford to work part-time, or take a big pay cut, or switch to consulting gigs.
There are a huge number of random things I could have been slotted into right out of school and I'd have done a good job. Today, my skills and compensation are much more specific.
It's easy to say that people should keep skills up-to-date but if you're truly a world-class expert in X, it's hard to transfer that level of skill to Y. That's a different level from junior competency in one language picking up another language.
I know someone at a largely military sub talking about bringing in "geezers" to consult on some very specific classes of problems.
Luckily, I ended up somewhere that I actually like and am making more money than at my previous gig, so it all worked out, but those months spending down savings started to wear on me.
Ugh, I don't even have a family and the amount of time spent on phone screenings, pairing sessions, whiteboarding, and take-home code challenges becomes staggering. What sucks is the more places you apply to, the more the inefficiency of proving that you can program rears its head. I'm not against these things per se, but even spending just a few weeks applying to companies and doing those things gets tiring and demoralizing. I can't even imagine what this will be like in 10+ years when I'm older and have people depending on me.
For me, as an older programmer, it's not about 'self-worth'. It's about sunk cost, it's about our ability to provide for our families, it's about what we are doing with our lives when we have much fewer days ahead of us than behind us.
What do I tell my kids or wife? I can't get hired because I didn't memorize enough JS functions, or the right one, or didn't grab onto the right tech stack?
This isn't about a theoretical emotional idea: it's about survival today, into old age that is coming up on me quick, about providing for families.