Live data from Hacker News

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

news.ycombinator.com

101–110 of 240 posts

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

#101
If he’d like to make a Minecraft mod, a Roblox game or a comprehensive game in Scratch, check out Codakid.

Their video walkthroughs explain everything step-by-step. They keep it very basic and assume no prior knowledge.

Our 7 year old had a really basic Roblox obby (obstacle course) set up in no time. We played the videos on the iPad, the Roblox dev environment running on my Macbook Pro. That way he could easily go back through the video if he missed something.

The courses are worth the money.

https://codakid.com/

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

#102
One of my kids learned Scratch at home. He tried some local classes, hoping they would teach more advanced material, but they were introductory and he spent his time tutoring the other kids (not a bad lesson in itself!)

We briefly tried GameMaker Studio 2, however we had no prior experience and finding out what functions were needed or called made it a high friction experience.

He has been playing Minecraft since a young age, and creates elaborate redstone mechanisms. I like how this mixes creativity, spatial planning, and boolean logic, and doesn't require learning a new UI or language.

Most recently we tried creating a Minecraft mod in Java using Forge. I cannot state strongly enough: do not do this. The Forge architecture is fundamentally broken, whereby it adds some functionality but otherwise forces you to code directly against decompiled Java classes.

Most tutorials only work with a specific version of Forge/Minecraft. There are no release notes or documentation, because there is no API. (To be fair, the Forge aspect is documented, though I only found it useful once I already knew what it was trying to explain.)

So what started out as an exciting father-son project became something I dreaded.

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

#103
My kids and I played Warcraft 3 together quite a bit. It came with an editor that let you create custom maps, including the creeps. From about the age of 10 my oldest loved making worlds for the rest of the family to explore. It was enough of a hook that he eventually wanted more than the map editor could offer.

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

#104
When I have taught kids programming I feel I have been most successful by when I could give a glimpse into the high level workings.

Most of the time I don't have many hours so what I try is to inspire by creating something in a few lines and show what it is all about: input, output, calculations, loops and branching and how we can have fun with it.

I've used the tools at hand:

20 years ago I used VBA (Visual Basic for Applications) and made a Caesar Cipher, ran it in a debugger.

When I taught teenagers in school I mostly used autohotkey.

Later I've used Go or Java, even with JSF(!) when that was what I was using at the time.

Mostly I try to get as fast as possible to the point were something works, then set a breakpoint and single step through it.

One favourite of mine is the good old guessing game that hasn't changed that much since BASIC on C64:

  > Write a number from 1 to 100:
  64
  > My number is lower, Try again.
  > Write a number from 1 to 100:
  37
  > My number is higher, Try again.
  > Write a number from 1 to 100:
  ...
  etc etc
  ...
  You gueesed it!
This introduces output, input, loops and if-statements, and you can let the kids have fun with the debugger, looking at the secret number in memory to guess it correctly at first try etc. It can also be done easily in most mainstream languages and frameworks that you have a working environment for, from VBA through WinForms through Java or Python console apps to serverside or frontend web applications.

Also FWIW: Kids around here (Norway) often have some programming at school it seems - even before grade 7. It is mostly scratch variants I think, but I'm also happy to see that at least some teachers have shown them how to open the console in the browser (Inspect Element) and have fun by "hacking" the html and css.

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

#105
post #37

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.

As a counterpoint, I started programming on my own at 7 with no guidance. Mainly because my IBM PC booted into a BASIC window if you didn't put the DOS disk in. I asked my mom to get my some magazines from the library so I could copy the games in them. So it's not totally odd for a 7 year old (or I was odd, which is quite possible).

Yeah. I did the same thing. I started hacking on the TRS-80 when I was 6 and IBM PC BASIC a couple of years later. Mainly because it was “just there” when you turned the computer on.

When my kid was 6 he had no attention span or desire to learn so I didn’t push it. Now he’s 9 and is asking questions.

I found that the best way to engage him is the old DOS game ZZT. It has a simple but complete OO language. And since you’re programming sprites, the notion of what an object is makes sense.

I taught myself OO with ZZT and I’m hopeful that it’ll click with him too.

Plus, it runs on the beat up laptop I let him use.

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

#106

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.

The irony of this statement is that only someone with strong memories of his or her parents projecting their interests and him or her and later resenting the effects thereof would project a fear like this on total strangers on the internet.

Well OP is an adult and not my child.

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

#107
If you'd like to reinforce some of the same mental muscles used during programming, you might consider certain tabletop games as a good way to do so during play. There is a game out there called Robo Rally which is excellent for the purpose, where you "program" your robot via a series of cards. It's not just for kids, being enjoyable by adults as well.

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

#108
It's interesting I have had little success in garnering enthusiasm for coding with my kids. I have taken the route of giving them exposure to it and occasional incentives to go a bit further, but never pushing it much beyond that. I wonder if technology these days is just so advanced that they do not see the link between the basics that programming starts out with and the apps they use day to day. For me, at 10 I could write a program myself in basic that was within range of the actual games and professional applications that were being made at the time. That is just so far from possible these days.

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

#109

Earlier quoted context omitted.

Actually making accounting fun for kids is also a good idea and should be encouraged.

Well you could say that about any vocation.

Agree: I followed my Dad around the farm for hours when I was a kid.

And yesterday I completed the first part of my prototype "gaming couch" and made sure those of my kids who cared could see how I did it.

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

#110

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…

Somewhat related: At one point I introduced my kids to what I called the number-machine-game. It goes like this:

I ask my kids to say a number, and then I do something to that number and tell them the answer.

Their job is to figure out the calculation I do.

Examples:

- I add a number: they say 3, I say 8. They say 11, I say 16

- I multiply a number.

- I multiply by something and add something else.

- etc

If you want to drive them nuts you can count the letters of the number, i.e. four = f o u r = 4, five = f i v e = also 4, ten = t e n = 3 etc :-D

(I might have gotten the idea from HN, but the above is how I taught it.)

Post reply on HN