Seems cruel to say that to a young person who is struggling with a serious issue. Lots of people graduate from college without coping mechanisms tuned to the realities of adult life ... including you perhaps? Maybe it would be better to just say that things are rarely as bad as they seem and the world will continue to need young, enthusiastic programmers despite any economic downturn.
I am the child of a “mixed marriage” from a poor family that faced a lot of real adversity. The worst thing anyone could have done for me was to encourage the idea that I was a victim of circumstances. You don’t develop coping mechanisms without adversity. Adversity is a good thing so long as it’s not perpetual.
You're absolutely right. But you don't need to add anything extra to the adversity by being mean. People are perfectly capable of generating enough suffering for themselves to grow as a person without help from someone else.