Live data from Hacker News

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

news.ycombinator.com

21–30 of 240 posts

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

#21
My kid was playing Lightbot at 6yo. Most programming toys I've seen have similar mechanics. I put together a cardboard version myself to help him practice some concepts (e.g. procedures), with the difference that it uses actual directions (up, down, left, right) instead of the usual forward, turn left, turn right commands, which in my observation was more intuitive.

He didn't seem to take much more interest in programming after mastering that, but he did eventually take interest in chess. The reason is that we borrowed a bunch of chess books from the library and he would go read them whenever he was bored, and he would play with his grandpa to try to apply the tricks he was reading about. Point being that having self-study and tight feedback loops seem to help in acquiring proficiency in a skill.

Personally, after the most beginner level, I'd start to move away from using game development as a motivator for learning programming simply because after some threshold, the math requirements ramp up substantially (e.g. implementing jumping in a side-scroller requires middle school level math at a very bare minimum). In my own journey, I've found that web development (using only the most vanilla subset of technologies) was a relatively gentle way to get into programming. The syntax is relatively forgiving, the building blocks are high level enough to allow easy creation of interesting interactive things, the built-in tooling in browsers nowadays are amazing and the tight feedback loop is there.

YMMV

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

#22
Had very good experience using Python as first programming language for 8-9 year-olds; professionally, I don't like it, though.

And even though I prefer it over Python as a language, I had disastrous results teaching Javascript to 12-14 year-olds for light browser games. My intent was to bring kids with signs of early stage addiction to mobiles "onto the other side", by looking at games professionally and with creativity (as much as I could, anyway). Turned out fiddling with async and rAF is really a bad fit for learning basics.

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

#23
> 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).

You can't quite hook up Scratch itself to Minecraft (not that I know of, at least), but if you want to use Minecraft as a backbone for this kind of education, you might be interested in Pneumaticcraft, which includes little programmable drones that are programmed using a simple mockup of scratch (https://www.curseforge.com/minecraft/mc-mods/pneumaticcraft-...) or ComputerCraft, which tries to emulate shell scripting and lua in particular (https://www.curseforge.com/minecraft/mc-mods/cc-tweaked). In the future, if you wanted to teach him Java, you could have him develop mods himself through the Spigot, Forge, or Fabric modding APIs.

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

#24
My daughter (who just turned 4) seemed like she might like programming, so I started out having her "program" a stuffed walrus, by telling it whether to go forward, backward, left, or right to get to a piece of food. Her natural inclination was to point to where it should go, so I first taught her that the walrus doesn't understand pointing or the word "here", just the directions.

Then we started "programming each other" by telling each other where to go, and I introduced doing multiple steps at once (like "step forward 5 times").

My goal wasn't literally to teach her to program, but just to introduce that way of thinking, which is pretty different from how we normally think in day-to-day life.

She was excited about it, so I got her the Osmo programming kit for iPad. You program a little monster walking around, using physical, scratch-style code blocks. She's been excited about programming the monster every day, and is able to (sometimes) do some short programs of a couple blocks.

If she learns a bit more, my plan is to show her how to program a simple lego robot with scratch, like one that spins a flag when it sees something pink. I love that idea because with 2 lines of code you can make something really happen in the world, plus she'll be able to come up with new ideas for the robot on her own, and learn about the constraints, sensors, and eventually more basic programming logic.

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

#25
I got into programming at around middle-school age, with no particular guidance from my parents beyond general encouragement.

I have three kids and none of them are interested in programming.

It's fine to support and encourage something your kids are interested in, and to give them opportunities to try things and discover those interests. But be careful you're not pushing them into something just because you like it. Your kids are independent human beings and may be interested in very different things than you are, or than their siblings are.

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

#26

My girl first got interested when she was 5, when she was already a pretty solid MC Survival player, so I got her into Scratch to mod her MC creative world and automate some agents. From there she was more interested in making stand-alone little animations/games in Scratch itself, and now (almost 2 years later) is mostly obsessed with making objects in Blender and has started doing physical electronics using various…

Ah, how I wish I was game dev instead of working mostly on Java backends for large financial institutions (and actually spending most of the time in meetings).

I am pretty interested in the modding Minecraft with Scratch part. I have found some abandoned projects. Can you point me to what you have used that worked for you?

Happy it worked for your girl and little scared she started at 5. I have two boys, one is 7 and the other is 4. The younger one is inseparable from the older so I wonder how it is going to be different for him.

I have been thinking about who gets to actually program. For now I am happy that mixed routine where we regularly switch works for him (he seems to be happy and engaged) and so I think I will continue this way for some time before I experiment with it.

I see that the best results we got were when he actually himself figured some stuff and made it by himself. His first machine -- ugly chest to destroy unnecessary items with a noisy clock that runs constantly whether there are items or not -- is still occupying middle of main room of our hobbit hole but I don't think I will touch it, because he was so happy when he got it to work.

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

#27

My daughter (who just turned 4) seemed like she might like programming, so I started out having her "program" a stuffed walrus, by telling it whether to go forward, backward, left, or right to get to a piece of food. Her natural inclination was to point to where it should go, so I first taught her that the walrus doesn't understand pointing or the word "here", just the directions. Then we started "programming each ot…

I bought this for my 4yo: https://www.youtube.com/watch?v=XlnP-8SczF0

Sorry the vid is in Polish but I think you can get the idea.

It is a talking robot that does "missions" where you have to program it to go forward, backward or turn, take objects from the map, etc.

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

#29

I learned programming when I was 8 years old from books and experimenting Mostly helpful was that I had a 386, QBASIC and GORILLA.BAS, but not much else. No games and no internet

I also learned from books (and no actual computer for many years).

But I don't think that's a good goal for today's world.

There is absolutely no way books are going to compete with shining rectangles so one must find a way to integrate new technology to get kids hooked on something more productive.

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

#30

I taught my 15 year old python programming over summer. We used the material provided by this course [1]. It worked out very well for us. We took a little detour at one point and I taught her basic skills to navigate around Linux terminal. Files, directories, editors, basic operational stuff. Then I took another little detour and showed her ropes on git and github. Then we got back to the python course and now I enco…

On the one hand, taxes are boring.

On the other hand, pretty much everyone I know wishes they had learned more about how taxes work in high school beyond the very high-level concepts of progressive taxes....

Post reply on HN