In my (very limited) experience, building text adventures is a great way to teach kids programming: * You don't need any complicated stuff for it, just printing to stdout and reading from stdin. * Kids love making up stories and games * When they understand the basics you can gradually increase the complexity: Add if/then/else conditions (do you wanna go left or right?), functions (e.g. to parse answers to questions)…
>I'd recommend a scripting language to get started, as it removes the need to compile code // Or use a REPL (eg repl.it)?
Ask HN: How should I teach code to kids?
131–138 of 138 posts
Re: Ask HN: How should I teach code to kids?
#132I've got two nieces, one is 4 and the other 2. For the four year old I tried using different games that are similar to ScratchJr. She's a lot more arty/dancey so even though she likes playing games on the tablet, these sequential typed games really didn't do it for her. She would just get a bit bored. The other kid, never plays with toys(ever!) she only draws and plays dress-up, but regardless, I bought her a code-a-pillar (https://www.amazon.co.uk/Fisher-Price-DKT39-Code-a-pillarTM-...) which is for ages 3-6. So even at the age of two she started playing with the code-a-pillar (obviously with the help of her mum), and managed to make it snake around all of her other (unplayed with) toys. So she clearly showed an interest an inclenation to sequential thinking. (Next I'm gonna try get her using ScratchJr, then getting her a Kano or moving to Scratch.)
Personally I would have loved getting them both involved, but ultimately I think only the two year old show's a preference to that "type of thinking".
Re: Ask HN: How should I teach code to kids?
#133You can start out with a drag-and-drop programming interface and work up to JavaScript or Python. The BBC and their partners have created a wide range of educational resources based on the micro:bit. The boards are really easy to attach to other things and have bluetooth on-board.
Re: Ask HN: How should I teach code to kids?
#134That's why I decided to do as much unplugged activities as possible. The concepts are so much easier to grasp I think when you're in a familiar environment (the physical world). Of course it's important to mix though.
Re: Ask HN: How should I teach code to kids?
#135Re: Ask HN: How should I teach code to kids?
#136Re: Ask HN: How should I teach code to kids?
#137Re: Ask HN: How should I teach code to kids?
#138Please do not make your cousins learn to code.