by GeneralMayhem · 13y ago · 0 comments
The reason we should teach programming is to force kids to think like programmers. Even if they hate it. Even if it's only for a couple hours a week for a few months. Programming is problem solving. Think about the mental processes involved: pattern recognition in complex systems, breaking down problems into their smallest parts, stepping through a potential solution one step at a time, managing multiple changing pieces of state at once. Those are your practical skills.
How many arguments could be ended if people knew how and were willing to think through their potential solutions one step at a time and see where each move left them? I'm the first to laugh at "STEM master race" arguments, particularly in education, but just because an engineer-like perspective isn't panacea doesn't mean it isn't a valuable tool that I wish more people had.
Learning to "think like programmers" is essentially teaching kids to think like engineers, in other words, recognize complex systemic interdependencies and understand that things usually form a system that has it's own rules, constraints, etc. When you start to understand these relationships, it helps you immensely even outside the realm of tech. For example, the Monarch butterflies are not having such a good decade. Why? Well, the system that enabled their migration (the prevalence of milkweed) has been modified extensively by humans, and now is at the breaking point where there may not be clear avenues for the butterflies to continue their migration patterns. This is a gross oversimplification of course, but the point is that now we can look at the other "nodes" in the system that will be impacted by lack of migration. Birds could be impacted, which in turn impacts whatever feeds of those birds, etc., etc.
Computers offer some of the more understandable and finite systems that we can learn, yet offer incredible flexibility, illustrating how complex things can get. Learning to speak in these languages helps with that understanding.
Also, I don't think anyone is advocating learning assembly or what not. When most people talk about "learning to code", it's picking up a higher-order language that does a lot of the complex things for you. It's not the same as teaching real computer science. It's basic comprehension and knowing how these systems form.
My personal favorite, that I'm always painfully reminded of when reading political news, is the ability to hold multiple interrelated systems in your head at once and check that they're mutually consistent. There's so much unintentional doublethink out there that I think could be significantly improved if people would just stop and walk through their own thought processes in a logical manner. It's not the only way to think, and it's not appropriate for absolutely everything, but it is a good sanity check for many, many domains, and it's frustrating when people tend to look at me funny and end the conversation when I try to, for example, explain that two ideas cannot possibly be held at the same time because they're contradictory when taken a step down the line.
Come to think of it, the concept of a sanity check itself is something that I got from programming and use in everyday life.
But in all seriousness, it's shocking how many people turn a blind eye to inconvenient contradictions/conflicts.
Learning metal shop could teach you a similar skill set about putting together something reasonable complex but you can't just be put in a workshop and figure it out.