I can’t back it up but recovering from depression by simply putting “rose colored glasses” is a recipe for bouncing back later. Happened to me.
In HN’s case: admitting that companies are quite toxic and more often than not working against you, that most people around you is probably an incompetent if put under a microscope and that the things you’re working on aren’t exactly changing the world for the better.
The trick perhaps is not letting those things make you cynical, and not acting on them. And forgetting yourself because you’re also a bit incompetent too, so you can let you and everyone else off the hook.