Unfortunately, this hits the nail on the head for a lot of folks, these days.
It's easy for me to say that I will only work with those I want. I'm set, and don't actually need the work (the money would be nice, but it's not a need).
I refrain from being an "OK Boomer," but I would gently suggest that folks starting out, devote significant portions of their income to savings, and conservative (not politically "Conservative," real "conservative") investments. I'd further suggest against looking to your peers for guidance in spending habits or lifestyle choices.
The ageism in tech is really quite puzzling. We're all gonna become old. White people won't become black, men won't become women (well, they can, but it requires some really significant dedication and resources. I have friends that have made that transition. It is not something for the faint of heart); but we will all become old. The alternative is not something we like to think about.
A lot of young people that treated their elders like crap, are now, suddenly, on the receiving end of the behavior. I don't find it satisfying, in any way at all. It's heartbreaking.