Until the government forbids writing programs by hand, writing programs by hand will remain a satisfying hobby. The only thing that's changing is how much other people appreciate the skill and effort you put into a given program.
Good advice regarding psychological investment.
Not so useful advice when the job provides your actual livelihood, and the changes (e.g. outsourcing or AI or some industry change) mean you might soon hold a "will work for food" sign in some street corner.
I mean these days, it's not usually that people made some particular job their whole personality and "center of their life", the reason that they worry about losing it.
It's that their job is what puts food on the table, and the job pools are drying up.
Also a lot of tech workers earn a higher salary compared to most of other professions, so I'd expect people to put away some buffer for a rainy day.
That was in regards of not trying to fly when conditions were marginal, but it applies to much more.