It seems he really did lose hope. Perhaps stuck in a lousy job for too long. Over the course of my life, I've changed jobs whenever I felt I needed a change. I've done databases, Java, embedded, mobile, etc. It kept me happy.
You don’t need hope if you are pragmatic. Know your own weaknesses, and have a system for failing. It seems like that guy is maybe going through something in a shitty career, but it becomes a vicious cycle. You end up traumatized and gravitate toward similar abusive workplaces. Have seen that happen to many friends in this industry. Everyone has an upper limit of the political bs they can take at their workplace. That’s why I personally refuse to work at a place with too many h1b. IME management tend to be literal slavedrivers and suck all the fun out of SWE in those places.