>Treat your work as a job and don't make it the center of your life.
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.
I understand that aspect but when you treat your work as just a job, you actually live with the mentality that you could get fired tomorrow and that's okay and you're mentally and financially prepared for that.
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.