No, it's absolutely realistic advice. It's a shitty profession unless you're insanely great at a speciality. Telling kids some nonsense about study X, Y Z is bad advice and cruelty to animals.
We really don't need to breed a new generation of code monkey slaves. You're better off studying watchmaking or leather working if you want a craftsman like profession involving science and engineering. Otherwise: be the boss.
You're seriously delusional. I've had largely great experiences as a developer and its largely a passion for me still. Sorry it wasnt a free meal ticket for you.
I did fine; mostly at prediction. Anyone who can't see the writing on the wall is fooling themselves, and telling young people otherwise (aka just study X as a generic javascript dude who studied in collitch) is a terrible, terrible thing.
Schools who sell sugar plum fairies should stake their students success. Are you willing to give this kid advice that you're on the financial hook for for the next 40 years?