Live data from Hacker News

Ask HN: Please share your experience teaching your kids to program

news.ycombinator.com

1–10 of 240 posts

Ask HN: Please share your experience teaching your kids to program

#1
Hi HN!

My son recently turned 7yo and I have successfully got him interested in programming. We started about half a year ago playing Minecraft and building more and more complicated automated machines. Recently I have added some robots that can be programmed in Scratch and now we have also started writing some simple games in Scratch.

I am not just trying to teach him programming but also show that with a bit of organization and working little bit each day you can achieve pretty huge results. So we created a very simple version of a game. I have then created a document where we are maintaining a listing of functionality we want to add. We then take them one by one, discuss how it can be added to the game and then tick off once it is done.

For Christmas he asked for some programming books ("how to make complicated Minecraft machines, how to write complicated commands and how to make mods").

We plan to do some more complicated robots and also make our own fun mods for Minecraft (as soon as I figure out how to hook up Scratch to recent version of it).

I am trying to not spend too much time on any given day (about 1,5h every day currently) so that ends up still wanting to do more.

I am also doing large part of coding myself and we switch who sits by the editor when he says he knows how to do something. I am trying to keep him enthusiastic by showing constant progress which I think is more important than that he actually does everything by himself.

I have 20 years of development experience so generally programming is not an issue for me.

Please, share your experiences, things that you have tested with your kids that did or did not work. Any tips you have personally tested.

Re: Ask HN: Please share your experience teaching your kids to program

#2
Each of my children started coding through Minecraft and Scratch, so I think that is a good path. I tend to let them pursue (or not) their own interests so I just make resources available to them.

It's worth emphasizing to your child the distinction between 'technology exposure' tutorials, and creative work as children tend to care more about making stuff and can find some tutorials a bit tedious. Luckily there are some high quality tutorials out there now, the mid-range and lower quality tutorials will just frustrate them.

Related to that, I would advise you to not let them enroll in any 'technology' classes in school as that will kill their interest since the educators will likely be underwhelming.

Also, at a certain age, if you give them too much attention for their interests they will stop pursuing it, so enjoy the next few years :)

Re: Ask HN: Please share your experience teaching your kids to program

#3

Each of my children started coding through Minecraft and Scratch, so I think that is a good path. I tend to let them pursue (or not) their own interests so I just make resources available to them. It's worth emphasizing to your child the distinction between 'technology exposure' tutorials, and creative work as children tend to care more about making stuff and can find some tutorials a bit tedious. Luckily there are s…

[deleted]

Re: Ask HN: Please share your experience teaching your kids to program

#4

Each of my children started coding through Minecraft and Scratch, so I think that is a good path. I tend to let them pursue (or not) their own interests so I just make resources available to them. It's worth emphasizing to your child the distinction between 'technology exposure' tutorials, and creative work as children tend to care more about making stuff and can find some tutorials a bit tedious. Luckily there are s…

Can you provide links of some of the high quality tutorials you have found?

Re: Ask HN: Please share your experience teaching your kids to program

#5
I'm not close to being a father, but I can provide the experience of having learned not that long ago

At first my dad put me a bit on CodeAcademy [0] which taught me tons of basics but didn't really get me hooked.

What really got me into coding was by thinking of a way I could use it to build something related to my interests or that would be useful for me.

That seems to be what you're doing with the games by linking it to something he's interested in so that's nice.

It can really be anything though, and you should try to show him the enormous area of things he can do with coding.

In my case I wanted to do my english homework faster, so I tried building a very simplistic program that could find literary devices (metaphors, similes, alliteration) etc... in the literature texts I had to study.

Also you should make sure you don't force it and that the passion and interest comes from him, which seems to be the case with the way he asked for books about coding.

[0]: https://www.codecademy.com/

Re: Ask HN: Please share your experience teaching your kids to program

#6
post #5

I'm not close to being a father, but I can provide the experience of having learned not that long ago At first my dad put me a bit on CodeAcademy [0] which taught me tons of basics but didn't really get me hooked. What really got me into coding was by thinking of a way I could use it to build something related to my interests or that would be useful for me. That seems to be what you're doing with the games by linking…

Thanks for you point of view.

I pretty much figured out not forcing anything is rule #0 for this project. I would rather be showing how we can have even more fun using programming.

The scratch game we are working on has Minecraft graphics and sounds on it and some of the rules derived from Minecraft. Simple arcade game but suddenly much more interesting because it has Minecraft element to it.

And instead of trying to force him to solve the problems I give him about 2s before I suggest the answer to the problem. I would rather want to spend time showing he can think of anything he wants and we can make it work (well... most of time).

Re: Ask HN: Please share your experience teaching your kids to program

#7

Each of my children started coding through Minecraft and Scratch, so I think that is a good path. I tend to let them pursue (or not) their own interests so I just make resources available to them. It's worth emphasizing to your child the distinction between 'technology exposure' tutorials, and creative work as children tend to care more about making stuff and can find some tutorials a bit tedious. Luckily there are s…

Electronics is my hobby and I am fortunate to have decently equipped electronics lab all with a dedicated desk.

So I was pretty worried when he came asking to get him signed up for a robotics class (3h every Saturday for couple of months).

I already have some ideas how I want to introduce him to robotics but I am not going to intervene here. Just made sure he knows he can always come back and tell me he is no longer interested in the classes and we will just cut it.

As to creative work, I figured out already it is better if I do most of figuring out how to solve some problems (and let him solve just enough to not get bored with it) and he is spending time figuring out what kind of features we want in the games, for example.

We then discuss what is and what is not feasible and how things can be working and I still try to make sure he understands how the program works.

I know he understands at least some of it because he can take educated guesses at how to modify the program to change it to do what he wants.

This seems to be really fun for him so I plan for it to stay that way for some time.

Re: Ask HN: Please share your experience teaching your kids to program

#8
Kind of different but I started learning programming while in primary school. I mostly messed around trying to learn how to make games in Unity. I didn't actually learn a whole lot of programming this way but it probably improved my interest in the subject and then I eventually discovered code academy which actually taught me how to program.

In between unity and codeacademy I tried a bunch of books but none of them really got me to understand what was happening so I didn't learn much from them.

Re: Ask HN: Please share your experience teaching your kids to program

#9
Your kid is 7. I'm pretty sure hat I was eating dirt when I was 7. If he has showed you he's interested in programming then go ahead, but make sure you're not projecting your own interests onto your kid. It'll lead to resentment in 7 or 8 years.

Re: Ask HN: Please share your experience teaching your kids to program

#10
The most success i've had with my 8 year old is building games in Roblox and the LUA scripting that comes along with that. We also have written some MicroPython to drive a small rover. With kids, or my kids at least, you have to be able to show some tangible results quickly or else they get bored. ...kind of like dealing with your boss.

another thing that my 8 year old is really into that surprised me is networks. Explaining how networks work and how he can start a minecraft server for him and his brother to play but his school friends can't because of the "firewall" has him on the edge of his seat hah.

edit: i want to add that i don't bother with explaining programming concepts like object-oriented design or algorithms just very simple cause/effect. Then to simple if condition effect. I get excited and end up overcommunicating and then boring my kids, it's like trying to start a carbureted engine without flooding it. You have to do give them just enough info to get started and hope it catches.

Post reply on HN