Free through lesson 3

Hands-On AI Coding for Beginners

Where to draw the line on what you delegate, how to write instructions, how to set up your repository, how to read diffs, and how to pin things down with tests. In 30 lessons you get to the point where you can explain the code you had AI write. Every piece of code and output shown here was actually run on Git 2.55 and Python 3.14.

Curriculum

The 30 lessons are split into 6 chapters. We recommend going in order from chapter 1, but feel free to dip into whatever catches your interest. Note: The Python examples run right in your browser. Try the git and shell examples in a repository on your own machine. Agent responses change every time, so they are not included.

Chapter 1 — What to Delegate and What Not To (lessons 1–5)

First, we settle what AI can and can't do, and who is responsible for the code you adopt. By the end, you'll be able to tell for yourself which jobs are safe to hand off.

Chapter 2 — Writing Instructions (lessons 6–11)

Learn to write instructions that get back what you had in mind: passing context, sizing each request, and using input/output tables. The chapter ends with an exercise that rewrites a vague one-liner into an instruction that can't be misread.

Chapter 3 — Setting Up the Repository (lessons 12–17)

With a rules file, a directory map, a check command, and an ignore list, you build a place for the warnings you'd otherwise repeat every time. The chapter ends with actually putting all four into one repository.

Chapter 4 — Reading Diffs (lessons 18–23)

Decide on an order for reading, and learn to spot code that runs but is wrong, safeguards that were removed, and dependencies that were added. The chapter ends with an exercise in finding a planted bug from a diff.

Chapter 5 — Pinning It Down with Tests (lessons 24–27)

Write tests first to lock in the spec, and stop regressions with tests that reproduce bugs. The chapter ends by running the full loop: from a table to tests, an instruction, and a diff review.

Chapter 6 — Using It as a Team (lessons 28–30)

Turn review rules, the line on confidential information, and licensing and attribution into systems rather than matters of personal conscience. We wrap up the 30 lessons by returning to "being able to explain it."

Once you finish all 30 lessons, move on to the Git & GitHub for Beginners course to solidify how you handle diffs and history, the Software Testing Techniques for Beginners course to go deeper on writing tests, or the Intro to Design & Refactoring course to turn generated code into something readable and easy to change. A membership unlocks every course.