Why do you think all these silicon valley CEOs are throwing their weight behind schemes to get kids and adults learning how to code? It isn't because they really believe there's some social or personal value in being able to program, it's because they want to flood the job market with developers and so crash wages. What's sad is that many programmers are actually buying it, and volunteering their time to help support and evangelize these schemes.
You speak the truth but I don't know how to prevent what is going on. I've also come to the conclusion most developers are too shortsighted to see their own career demise in 20 years.
And every time you try to explain this to those who will be affected (software engineers) they argue that the movement is alturistic, or that they can't be replaced even though they're just maintaining a simple CRUD app...
There is a lot of crying and worrying about wages on here right now. If you are from CS or SE, you don't have the right to cry about a saturated job market driving down your wages. They are plenty high. If you want people with real problems, look at the graphic design industry. $10/hr can get you your pick of the litter among several applicants who have over 20 years experience in one of the biggest cities in the United States. Then imagine what it must be like for recent college graduates in the field.