The kind of coding that you talked about will not be automated away.  The kind of coding that they are teaching emasse, such as "coding" the thermostat, or coding customization of home appliances, or coding how webpages responds to other websites, will be.  

The issue is they are not teach algorithms. They are also not teaching computational physics or biology, psychology or sociology or literature or even engineering.  They are teaching coding without a purpose.  It is akin to teaching how to code in assembly language which is automated away by compilers.