3 ms·
If there is a toy or app that has programming related activity in it, and they enjoy that app, then they will learn. Not only that, they'll learn faster and mor
by alkonaut 8y ago
If there is a toy or app that has programming related activity in it, and they enjoy that app, then they will learn. Not only that, they'll learn faster and more independently than you can imagine. But in my experience it has to be something they really enjoy, it's hard to steer them.
As others have said, I think 5 is probably a bit early. It varies of course, but programming is so much easier when mathematics, words etc is a bit more natural. 6 or 7 is probably easier for most kids.
What I did was (this was an idea from a previous HN discussion I can't find) was sneak programming concepts into the little "riddles" kids want all the time when they are learning. "Dad ask me how to spell a word" or "Dad ask me to add some numbers" etc.
What I did was tell stories about "machines" that could take in something and output something. I say "ok, I'm thinking of a machine. It takes in a word, and outputs a number. Guess what it does.". The child can give example inputs, and I say what the machine outputs. They say "Cow" I answer "3". Very quickly they manage do deduce what the machines can do. A machine that doubles. A machine that adds 3. A machine that always returns 9. A machine that reverses strings. A machine that returns 1 if a word is longer than 4 letters otherwise 0.
The "machines" are obviously "functions". And it's absolutely astonishing how quickly this concept sinks in.
Even more fantastic is that more complex functional complex can be introduced just as easily. The idea of chaining two machines together (feeding the output of one to the input of another) gives composition. The idea of a machine that reverses what another machine did (inverse) etc.