I know I'll catch flak for this, but where did this idea that "anyone can learn to code" come from? Coding requires a certain drive and curiosity, without delving into the capability side. What makes anyone think that they can take a bunch of people who never or barely passed highschool and have been working in a mine for a decade+ and teach them this? By all means subsidize a laptop and point them at some great onli…
Not everyone will go into CS and develop new data structures, algorithms, or programming paradigms—but most people can and should be able to code solutions to well understood problems—just like mathematics this doesn’t mean everyone will know how to apply it in novel business situations, but just as most people can perform easy calculations they should be able to write straightforward programs.
It’s all a matter of the appropriate cultural and educational scaffolding. Programming is still in its infancy and hasn’t permeated through the education system deeply enough yet to enshrine it as a core proficiency, but we can and should head in this directon.