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.