I was thinking of setting up a Node server with hot reload so he can make changes and instantly see them while we go over some of the basics of HTML as a starting point, create a few pages and link them to each other. Having an immediate feedback loop will be important.
Ask HN: Best resources for teaching my 8 year old to code
1–10 of 23 posts
Re: Ask HN: Best resources for teaching my 8 year old to code
#2Re: Ask HN: Best resources for teaching my 8 year old to code
#3Develop locally save, refresh the browser to view (Checkout Laravel Valet for local web server on OSX).
After that walk through registering a domain and basic hosting, uploading via FTP. Just so he knows how it works.
After that move over to storing things in a repo and deploying.
Re: Ask HN: Best resources for teaching my 8 year old to code
#4Re: Ask HN: Best resources for teaching my 8 year old to code
#5Another good project, if you plan to go from html to coding, is https://microbit.org
Re: Ask HN: Best resources for teaching my 8 year old to code
#6I'd suggest going the opposite way: start off with vanilla local HTML files. At the very start, he's going to have his hands full with HTML and CSS, then eventually JS and dev tools. It will make way more sense for him down the road if you introduce templating/routing after he realizes the tediousness of copying and pasting layout changes across multiple HTML files.
For introducing server-side things, I'd suggest something web-centric like PHP. It may not be sexy, but it does two important things: 1) it won't bog him down as much as Node with configuration/plumbing stuff like setting up a database or adding static asset middleware, and 2) it will expand your son's horizon from just-javascript-development to polyglot development.
Re: Ask HN: Best resources for teaching my 8 year old to code
#7Re: Ask HN: Best resources for teaching my 8 year old to code
#8I was at a steam fair last weekend, and they had the OhBot, a programmable robot face, on display. It is programmed with what appeared to be a version of Scratch. You could control the head, mouth, and eyes with the track pad and keys. Kids were really into that and there was quite a line at that table.
Thinkfun also has a good board game to teach programming logic called Code Master Programming Logic Game.
If you really do want to go a more abstract route, I would start with the Python for Kids book by Jason Briggs. Once he gets through that, get the Python Crash Course next and work through the 3 problems in that book. It has one where you make a Django app with a user login.
Re: Ask HN: Best resources for teaching my 8 year old to code
#9Have him work through the book Head First HTML and CSS. Develop locally save, refresh the browser to view (Checkout Laravel Valet for local web server on OSX). After that walk through registering a domain and basic hosting, uploading via FTP. Just so he knows how it works. After that move over to storing things in a repo and deploying.
Re: Ask HN: Best resources for teaching my 8 year old to code
#10I have tried to teach my kids "programming" but it isn't until they are invested for their own reasons that they really care to learn this stuff. We let my oldest just look around at projects on scratch so he could find things HE was interested in (minecraft, gravity falls, etc) and then he was interested enough to start copying and manipulating projects (we didn't even show him how to do it, he just figured it out). Now he has posted his own first project and had the unique feeling of "shipping" something. I think that "shipping" feeling is the quick feedback kids need to get and stay engaged.