If us tech folk looked at it truly thoughtfully, we'd understand exactly how hard the world is for most people, and how easily it could turn that way for us.
Every industry is all about competition, consolidation, and maximizing profit. The older this one gets, the lower the wages are going to be for your run of the mill programmer. The societal message that "everyone should learn how to program!" is ultimately all about lowering wages.
As regular ol' programming tasks become cheaper and cheaper, we'll keep adapting and doing more specialized work, right? So what there's no one wanting to pay you 6 figs for making CRUD apps anymore. Just learn some machine learning and away you go! A year goes by and uh oh, Microsoft just added auto-ML to excel at the price of 20$ a month. How long can your job last? Better change specializations again!
Maybe it wont happen in our life times, but the wealth we're all capturing in this industry WILL dry up and get captured. And eventually there will be a new technological revolution that fills a new pond somewhere else. There will be a whole lot of callousness until a vast sum of us have to finally make that long horizontal migration. People who change from actionscript to rust are making tiny vertical migrations in career. It's not at all the same thing.