Did you hear that, bruh, you should be totes cool with not being able to afford what your parents could because if they were where you are they wouldn't be able to afford shit either. You just need to understand economics is all. That makes it all ok.
I'm not saying we should be fine with it, just trying to understand what "doesn't even pay that well anymore" mean practically. E.g. if other careers have gotten better compensated while programming has gotten worse, it would have meant they'd be incentivized to change careers.
What I see locally is that cost of living has gone up but no other jobs (aside maybe real estate?) have improved compensation relatively to programming in that time.