Ask HN: How to teach programming to children?
I have one 13-year old child in my family who is really interested in programming but doesn't know a thing about it. One afternoon I decided I would teach him some but I didn't have a clue where to start from. Also he had quite strong opinions how programming works and how easy it is to create games without any knowledge of the area. I decided to start of with some basic HTML and CSS but he wanted to go straight to game programming which I don't have a clue at all (I have done mostly low level C programming and some web programming).
Do you guys have any good tips how to teach programming to this kind of child so that it will keep him motivated?
10 comments
[ 0.27 ms ] story [ 44.2 ms ] threadhttps://anki.com/en-us/cozmo
What's your child's aim? Impress they friends "I know game design!" Because that's impossible in a few weeks, or years, with expectations like beautiful visual effects.
Android/iOS also have a pain of structured languages.
Perhaps something like 100 Javascript steps per day. I did search, and perhaps another HNer could follow, but there was link 3-4 years ago about a person that gave herself a javascript challenge per day, starting from really basic HTML/CSS, to some quite interesting creations, in the space of a few weeks/months.
Then given some grounding in JS, extend that with something Node and React-based later (but don't announce that yet? Sounds too scriptured?). With a low-level understanding, you could certainly explain problems novices encounter with things like string inspections and data types.
You says he is interested. Then he won't lose motivation. Even if it does, it will keep coming back to him. With the help of the Internet, he will figure things out on his on.
As a starter, maybe give him something like this https://processing.org/download/
He can start making 2d and simple 3d stuff with it quite easily.
https://news.ycombinator.com/item?id=1076825
has an old (but still relevant) discussion of this.
I got interested at 11, wanting to make games, but my expectations (and those of my friends, particularly) were far too high. It wasn't until I was 15 or so and got interested in the function of computers and mathematical logic that I really learned anything.
https://projecteuler.net/ fed my hunger for challenge, knowledge and quick(ish) reward.
Edit: I started in Python and Pygame at 11, continued Python at 15 and then got into Clisp.
Learning is something that comes far more naturally than teaching. If you aren't qualified to teach it, then don't try. Instead, facilitate their self study process. It will be far more effective and a better experience for both of you.
A friend of my created a Udemy course where he teaches how to build games such as Flappy Bird or Pacman in Scratch. It could be a good start. Let me know if you'd like a coupon (would cost $10).
https://www.udemy.com/programming-for-kids/