Ask HN:

"Are there any good โ€œcoding for kidsโ€ books?"

Like most of you I learned to code as a kid with adult resources. But my children are nearly ready to learn to code and I am considering that maybe there could be some better resources available now. However most of the books I've seen that are made for kids are too simple and obfuscate important details. So, are there actually any good kids coding books?
๐Ÿ‘คchana_masala๐Ÿ•‘4y๐Ÿ”ผ53๐Ÿ—จ๏ธ58

(Replying to PARENT post)

What age are they? Big difference between a 6 or 7 year old and a 13 year old!

I've got two children (8 & 11) and done lots of volunteering teaching programming to children (and teach on a computer science degree as well!). I think a lot depends on the age and what you want them to learn.

Considerations: Do they read fluently? How is their typing? What sort of things do they actually want to programme? What is it that you want them to learn? Are you going to sit down with them and go through the book or just leave them to it?

There are a lot of resources these days that aren't books too which may be better. There are lots of online 'lessons' if you look at e.g. Code Club or Hour of Code. You've got games like CodeCombat and Erase All Kittens. There are lots of programmable toys of the robotic variety. You can get them doing stuff with Microbits or raspberry pis - the SenseHat is quite fun for example.

Not a programming book, but my older son really enjoyed Computational Fairy Tales by Jeremy Kubica.

I also wouldn't be too put off by some things being made simple. In a sense as a parent, you are trying to motivate them as much as teach them. And as a programmer yourself, you are in a good place if you want to say to them 'actually it's a bit more complicated than the book makes out'.

๐Ÿ‘คjvvw๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

Maybe not what you asked for :-) but.. I wish I'd had The AWK Programming Language when I was 10 or so. Chapter 1 covers the essentials in a way a child could appreciate, I think. And already you can do very useful stuff. From there the step up to a proper, general language is not a big one. If there's a better-written programming book of any kind, I'd love to see it. There's so much to learn, not just from the content, but from the masterly, friendly way it's presented. And it goes as far as one could reasonably wish! instead of ending at the basic level where it started.

https://archive.org/details/pdfy-MgN0H1joIoDVoIC7

Dr. Johnson used to condemn me for putting Newberyโ€™s books into childrenโ€™s hands. โ€œBabies do not want,โ€ said he, โ€œto hear about babies; they like to be told of giants and castles, and of somewhat which can stretch and stimulate their little minds.โ€ When I would urge the numerous editions of Tommy Prudent or Goody Two Shoes; โ€œRemember always,โ€ said he, โ€œthat the parents buy the books, and that the children never read them. โ€“ Mrs Thrale, Anecdotes of the Late Samuel Johnson

๐Ÿ‘คyesenadam๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

I have strong personal belief that the trading card game Magic: The Gathering is a perfect introduction to programming

Itโ€™s got state, conditonals, loops, stacks, maybe even concurrency with multiplayer. All wrapped up in a fun game with cool art and lore.

If you can resolve a deep stack in Magic, thatโ€™s pretty much like keeping track of procedural code in your head.

Downside is it can get very expensive.

๐Ÿ‘คjohn2x๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

The children's publisher Usborne has many titles on computers and coding:

https://usborne.com/gb/books/browse-by-category/science-and-...

The official Raspberry Pi magazine website make all their issues available free to download as PDFs. Each issue is full of tutorials. (Obviously requires a Raspberry Pi) :

https://magpi.raspberrypi.com/issues

๐Ÿ‘คopen-source-ux๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

> Like most of you I learned to code as a kid

I didn't start learning to code until I was 27. I think probably the most compelling reason to teach your kids to code is so that you can work on projects with them and have that shared interest.

But, of course, that could backfire. My dad was interested in antiques, opera, gothic architecture, etc and tried to force that down my throat. I couldn't stand it and that made me rebel hard against it.

Your kids might just want to be different people than their parents, or maybe they really are interested in the things you're interested. I don't know. I say try to expose them to a bunch of different things, not just what you like. Maybe they'll make great software engineers, or maybe they want to become marketeers or lawyers or designers. If you encourage good social, communication, and learning skills, they'll be successful in whatever career path most interests them.

Sorry, I get a little uppity when people start talking about teaching kids to code.

๐Ÿ‘คbaron816๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

When I was a kid, I learned to program in part from Ted Felix's QBASIC tutorial: http://tedfelix.com/qbasic/

Pretty outdated, of course, but still a surprisingly accessible way to learn.

๐Ÿ‘คjasonhansel๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

Here are a few books on Logo: https://turtlespaces.org/books/

In particular, The Great Logo Adventure is great for kids: https://courses.cs.duke.edu//cps108/spring00/projects/slogo/...

๐Ÿ‘คempressplay๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

You can call me old school, but you can teach some basic to kids (Print statements, basic syntax), however, I would not start teaching concepts even like loops, or algorithms, until the child has basic grasp of algebra. In this case the math helps but it's not the math, but to ensure the child has organization, and ordering skills.

Of course a book about good or planning/organizing I think might make a great starter for a kid you want to become a good programmer. I have seen some a few already burn out (Even in childhood, often it's an adult pressure getting these kids into coding) however, without the organizational skills learned first, when things get even a little complex, the kids buried or set back by the lack of some formal reasoning or lack of organizational skill.

๐Ÿ‘คflamesofphx๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0
๐Ÿ‘คSMAAART๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

It's not a book, but check out things like Swift Playgrounds, Redstone in Minecraft, and Roblox (for Lua). Otherwise, work on projects with them.

I'm a child who learned to code with adult resources as well, and the only reason I stuck with it is that I was making things. Stupid, silly things, but it hooked me for life. I also liked the social aspect: I was a rural child who had nobody else around who liked nerd stuff other than my parents, and I was more than willing to learn to code if it meant I could have friends and not be bored like I was in school.

I can't recall ever using a book, actually. It was mostly documentation + discussions. I'd actually say it might be better to take them through projects and when you get stuck, show them how to look up the answer to their problem. That's what devs do in the real world.

๐Ÿ‘คMezzie๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

The best are still these Usborne books:

https://www.rockpapershotgun.com/amp/usborne-coding-books

Nothing else comes close. Just install some open source version of Basic and youโ€™re good to go.

๐Ÿ‘คd13๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

You can explain coding in a half hour without a book. Just walk through the steps to accomplish some everyday task, like making a cup of tea.

Programming is just steps to do a task and a computer is a thing that can repeat those steps - you don't need a book to explain it - I just did it in a few sentences.

The only proper way to learn something is for it to be useful in your life. If there are games or opportunities to modify games using some scripting languages - kids will want to learn it.

Books are not fun for most kids, so you're going about it wrong - if you can't make it fun for them without books, you've already failed.

Books are good for additional information and a reference, after you've been taught something by a good teacher. They are a bad tool for learning just about everything.

๐Ÿ‘คalexashka๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

I did a few workshops coding LEGO parts at around age 10. We did stuff like turning lights on- and off or measuring the temperature. Maybe a good place to start, as it connects to the real world. I imagine LEGO has more interesting parts these days. Like robots or drones.
๐Ÿ‘คm3nu๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

Scholastic had a mash-up between choose your own adventure and programming in the 80s. They were awesome. In one chapter the program decided your fate. There were "two" outcomes. You were prompted to enter a number and then a countdown appeared. Reading the code, if the input was even, X happened. If the input was odd, Y happened. The trick was to realize the code allowed you to input 0 which was the desired path forward.

https://en.wikipedia.org/wiki/Micro_Adventure

๐Ÿ‘คmikecoles๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

Not a book but one of my first exposures was the grey BigTrak:

https://www.techagekids.com/2015/10/the-bigtrak-programmable...

https://en.m.wikipedia.org/wiki/Big_Trak

Probably informed my later forays into BASIC. A new one has been in development but not shipped IIRC. See XTR in Wikipedia link.

๐Ÿ‘คmixmastamyk๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

I created a card game to introduce SQL. Not exactly coding, but if interested check out https://rowsandtables.com
๐Ÿ‘คRinum๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

How to Design Programs

https://htdp.org/2021-11-15/Book/part_prologue.html

Take a quick scroll through, it features programming with pictures which is much more useful and motivating for a beginner than lines of text.

First impressions matter. So avoid excessive keywords and syntax that only scares beginners into thinking programming is a voodoo-magic-minefield. I'm looking at you, Python.

๐Ÿ‘คliamdiprose๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

Double Fine released a really fun game where you have to hack the underlying code to solve the puzzles. It's a good introduction to programming. https://www.doublefine.com/games/hack-n-slash

After that, I'd point them at Pico-8 https://www.lexaloffle.com/pico-8.php

๐Ÿ‘คjoeld42๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

All these recommendations seem great, Im kind of wondering if anyone has any thoughs on coding books / resources for a 1-2 year old.

My kid loves books but not much out there in toddler programming related board books. Also been pushing duplo legos and play dough which seem somehow programming related, no idea why. And someone gave him a linux penguin (tux) plush.

Other than that not sure where to go next. Maybe hes ready for a pi but I dont know about any special linux distros for kids.

๐Ÿ‘คpkdpic๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

๐Ÿ‘คnikivi๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

How about games? Something like while True: learn() is really good at explaining the high level

Minecraft education edition (and even general Minecraft) is good at the lower level.

๐Ÿ‘คmuzani๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

๐Ÿ‘คkkirsche๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

Not a book, but you might like to have a look at https://projects.raspberrypi.org/en/paths

We're adding more paths soon, including a More Python path and an Introduction to Unity path.

The paths build up skills and then build up independence.

Kids can start with Scratch then move on to Python etc/

๐Ÿ‘คMarcScott๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

For kids 5-7 there are Scratch JR coding cards that are nice. I am working on a scratch jr course for my kids.

For kids 8-12 with Scratch I think it is better to actually clone ( remix ) projects to figure out how they work. There are a few books out there, but they donโ€™t really teach the concepts. I think finding short videos on YouTube is a better approach.

๐Ÿ‘คtmaly๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

more than books and materials, I've found hard to find actual software that could be a good first step. I really miss BASIC and Hyper Card. The problem is that while you could still get your kids to code BASIC and play in actual hyper card, they don't represent the "state of the art". At the time, BASIC and HyperCard could get you really close to what was being offered over the counter as paid software.

Today, the barrier is so much higher, so while you could still get them to play in python (not ideal and really complex compared to BASIC) and maybe scratch, there's a really visible gap of what they can achieve without significant effort and steep learning curve.

I'm a bit more convinced that maybe going the route of scripted minecraft or roblox or even Horizon if you are into VR is probably the best way to get kids into programming.

๐Ÿ‘คfunkaster๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

Buy them a pi 4 and โ€œGetting started with raspberry piโ€. It has some great simple python programming for games.
๐Ÿ‘คmore_corn๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

Get the physical book - โ€œ25 Scratch 3 Games for Kids: A Playful Guide to Codingโ€. Graphical way to program.

My eight year old was making games in minutes. And was โ€˜gettingโ€™ it.

i.e. https://www.amazon.com/dp/1593279906

๐Ÿ‘คGoldenMonkey๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

There is the world of Hello Ruby [0], book(s) and other learning material translated into 20 languages. I think they are for younger kids. There is also some material for teachers.

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

๐Ÿ‘คniemenmaa๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

As a starter, I'd love to read these. I bet they explain stuff way better than some paid tutorials
๐Ÿ‘คlonnydonovan๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

Computational Fairy Tales [1] introduces a lot of complex concepts in a readable way.

[1] https://computationaltales.blogspot.com/p/book.html

๐Ÿ‘คPeritract๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

Not really a book, but maybe there is something valuable for you:

https://kidscancode.org

๐Ÿ‘คriidom๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

Not a book but I highly recommend Construct3 for kids wanting to do games programming. Also CodeCombat as mentioned elsewhere in this thread,
๐Ÿ‘คandrewstuart๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

Pico 8 should be a good start.
๐Ÿ‘คterrycody๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

not a book, but I like https://code.org/
๐Ÿ‘คauthed๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

Hello Ruby
๐Ÿ‘คJommi๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

K&R
๐Ÿ‘คsys_64738๐Ÿ•‘4y๐Ÿ”ผ0๐Ÿ—จ๏ธ0