You just described essentially what those coding "boot camps" taught people to do. Something you can learn in 12 weeks always seemed to me to be a job at high risk of automation.
Unfortunately, many "computer science" curricula weren't much better, and so now we have hordes of unemployed people with a skillset about as relevant as being able to hand-assemble ZRA1 code.