News for hackers. Stuff that matters.
Re:Ask HN: Are you teaching your kids to code? (and how) by muzani on Friday March 15, 2024 @02:30PM (#39719099)
The basics is just solving puzzles. It's games similar to The Incredible Machine.

1. Define the problem.

2. Build a part of the solution that gets them closer to the answer. They should be able to evaluate whether this is closer to or further from solving the problem.

3. Build more parts iteratively. Test and debug. These will break earlier solutions sometimes.

4. At higher levels, they define the problem to solve. Make a racing game or a platformer? Automate something. Minecraft is good for figuring this out.

Many other hobbies work here. Paul Graham was inspired by painting. TDD utilizes climbing analogies. Something like cooking may not work because you have a full design and it can't be figured out iteratively.

There are no comments on this comment yet.