It's true that high-school coding classes aren't essential for learning computer science in college.
Students without experience can catch up after a few introductory courses, said Tom Cortina, the assistant dean at Carnegie Mellon's School of Computer Science.
However, Cortina said, early exposure is beneficial.
When younger kids learn computer science, they learn that it's not just a confusing, endless string of letters and numbers — but a tool to build apps, or create artwork, or test hypotheses.
It's not as hard for them to transform their thought processes as it is for older students.
Breaking down problems into bite-sized chunks and using code to solve them becomes normal.
Giving more children this training could increase the number of people interested in the field and help fill the jobs gap, Cortina said.
Students also benefit from learning something about coding before they get to college, where introductory computer-science classes are packed to the brim, which can drive the less-experienced or-determined students away.
The Flatiron School, where people pay to learn programming, started as one of the many coding bootcamps that's become popular for adults looking for a career change.
The high-schoolers get the same curriculum, but "we try to gear lessons toward things they're interested in," said Victoria Friedman, an instructor.
For instance, one of the apps the students are developing suggests movies based on your mood.
The students in the Flatiron class probably won't drop out of high school and build the next Facebook.
Programming languages have a quick turnover, so the "Ruby on Rails" language they learned may not even be relevant by the time they enter the job market.
编程言语的更新很快，因而比及他们进入休息力市场时，他们所学的“Ruby on Rails”编程言语乃至与市场需求都不太相干。
But the skills they learn — how to think logically through a problem and organize the results — apply to any coding language, said Deborah Seehorn, an education consultant for the state of North Carolina.
Indeed, the Flatiron students might not go into IT at all.
But creating a future army of coders is not the sole purpose of the classes.
These kids are going to be surrounded by computers — in their pockets, in their offices, in their homes — for the rest of their lives.
The younger they learn how computers think, how to coax the machine into producing what they want — the earlier they learn that they have the power to do that — the better.