It was absolutely shocked at the time. But in hindsight the frequency with which I considered ending my life should have been a clue.
You might consider if you fit with "complex PTSD" or "childhood emotional neglect". This seems common among high-achieving tech people.
That was such a huge insight to me that I still struggle with it almost 15 years later.
It's like a Fish out of the fishbowl moment, discovering that other peoples inner dialogue can be so much more positive.
"Happiness has nothing on the overcompensations for misery" - Huxley
If you're sad for a good/known reason you probably won't feel the need to overcompensate.
Edit: I do not mean to say people who don't meet this criteria aren't depressed in any way shape or form.
Roughly speaking of course