|
|
| | Ask HN: How to teach basic programming | | 7 points by ejanus on Oct 1, 2016 | hide | past | favorite | 6 comments | | I would be teaching junior craft school basic programming. My students have good knowledge of discrete electronics components like transistors, diodes, and others. I see this as a great advantage. But they have not been exposed to programming in any form.
I would be working as a volunteer and my intention is to introduce them to basic structure of programming without spending too much time on any particular language idioms. I would run them through Javascript and Python. And I also have in mind to introduce them to Arduino ecosystem towards the end of the program .
So, my question is how best could I introduce basic concepts like function, statements and expressions without leaning too much on any particular language ? What would be ideal programming assignments? Should I build web pages for them? |
|

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
|
In teaching programming, I've found that often the hardest thing to learn is how to break down problems logically, not how to write code. For example, if I assign students to write a function that takes an average (mean) of a series of numbers, very few will fail because of syntax errors. Many more will fail because they've never thought about how to take an average!
Therefore, my latest thinking is that the first few programming lessons should be about basic mathematical problem solving. How to compute an average. How to estimate a square root. That sort of thing in a "math" class is assumed given. To a mathematician, the square root of two is "the square root of two" and no computation is necessary. I want to convey to my students that computers have to be taught a process, not an answer.
I'll find out next semester if that's a better approach. I hope you find it helpful or at least interesting.