Lesson 7 of 40Learning with AI
Building to Learn
Pick a project one step above your level, plan it with AI as a mentor, build it in milestones, and turn it into a portfolio piece you can explain.
Tutorials teach you to follow. Projects teach you to decide. Somewhere between your fifth tutorial and your first job, the fastest way to grow is to build something real that nobody has already solved for you step by step. AI makes this much easier, because you now have a mentor on call who can help you scope the idea, explain a confusing doc page, and review your code at midnight. It also makes it easier to fake: an agent can build the whole project while you watch. This lesson shows how to run a project so that the code gets written by you and the learning stays with you, then how to turn the result into something you can show an employer.
Why projects teach what tutorials cannot
A tutorial removes every decision. The folder structure, the libraries, the order of steps and the fix for every error are chosen for you. That is useful when everything is new, but real work is mostly decisions: what to build first, which library to trust, how to name things, what to do when the docs and the error message disagree.
A project forces those decisions, and every wrong one is a lesson you will remember. The previous two lessons gave you the habits you need: ask for hints instead of answers (Learning With AI), and check everything the model says (Trust but Verify). A project is where you use both for weeks at a time.
Choose a project one step above your level
The best learning project sits in a narrow band. Too easy and you learn nothing new. Too hard and you stall, get frustrated, and end up asking an agent to finish it. Aim for one step above what you can already do: most of the project uses skills you have, and one or two parts force you to learn something new.
| Your level | Too easy | One step above | Too far |
|---|---|---|---|
| Finished a Python basics course | Another number guessing game | A CLI that tracks your spending in a CSV file and prints monthly totals | A multi-user web app with payments |
| Built static pages with HTML and CSS | A second landing page | A small site that fetches data from a public API and handles loading and errors | A real-time chat app |
| Built a CRUD API | Another todo API | The same API with login, tests and a deploy | Your own database engine |
Two more filters help. Pick something you will actually use or care about, because interest carries you through the boring middle. And pick something small enough to finish in two to six weeks of evenings. A finished small project teaches more, and shows better, than an abandoned big one.
You can use AI to calibrate. Describe what you know and ask:
Here is what I can do so far: [list skills]. Suggest 5 project ideas that
mostly use those skills but each require learning exactly one new thing.
For each, name the new thing and estimate the size in evenings.
Do not include any code.Write the spec with AI
A spec (specification) is a short document that says what you are building and, just as important, what you are not. Writing one before coding saves you from the most common project failure: scope that grows every evening until nothing is ever done.
AI is a good spec partner because it asks questions you forgot to ask yourself. The trick is to make it interview you rather than write the spec for you:
I want to build a CLI spending tracker in Python. Interview me to write a
one-page spec. Ask one question at a time about users, features, data,
edge cases and what is out of scope. When we are done, summarise my
answers as a spec with sections: Goal, Must have, Nice to have,
Out of scope, Open questions.Keep the result in your repo as SPEC.md. A good learning spec is short:
# Spending tracker
## Goal
Track my own spending from the terminal and see monthly totals.
## Must have
- `add 12.50 food "lunch"` appends a row to spending.csv
- `month 2026-10` prints totals per category
- Clear error for a bad amount or date
## Nice to have
- Export a month as a simple bar chart in the terminal
## Out of scope
- Multiple users, a web interface, bank imports
## What I want to learn
- argparse, reading and writing CSV, writing my first tests with pytestThe last section is the one tutorials never have. Writing down what you want to learn tells you which parts you must write yourself, and tells the AI which parts it should only hint at.
Split it into milestones
A spec says where you are going. Milestones are the stops along the way, each one a small working version you could demo. The rule is that every milestone ends with something that runs. "Set up the database layer" is not a milestone; "I can add one expense and see it in the file" is.
M1
Walking skeleton
The script runs, parses one command, and prints it back. No real logic yet.
M2
Add an expense
add writes a valid row to the CSV. Bad input gives a clear error.
M3
Monthly totals
month reads the file and prints totals per category.
M4
Tests
pytest covers adding, totals and the bad-input cases.
M5
Polish and share
README with usage and screenshots, cleanup, pushed to GitHub.
You can ask AI to propose milestones from your spec, then trim them. A useful check: "Is each milestone small enough to finish in one or two evenings?" If not, split it again.
Put the start of a learning project in a sensible order.
- Tap the steps below in the right order.
Build with a mentor, not a contractor
A contractor takes a job and hands back a finished product. A mentor watches you work and helps you improve. Coding agents default to contractor mode, especially tools like Claude Code that can edit files and run commands. For a learning project, keep them in mentor mode for the parts listed under "What I want to learn".
The most valuable thing to ask for is a review, not a solution. Write the milestone yourself, then:
I finished milestone 2 of my spending tracker (code below). Review it like
a senior developer would in a pull request. List problems by severity:
bugs first, then edge cases, then naming and structure. Do not rewrite the
code. For each problem, explain why it matters and give me a hint, not a fix.Then fix each point yourself and ask for a second review. Two rounds of review on your own code teach more than reading ten perfect solutions, because every comment is about a mistake you actually made.
When you are stuck rather than finished, use the hint ladder from Learning With AI: a question first, then a hint, then an explanation, and code only for the parts that are not on your learning list. Boilerplate, config and a quick script to generate test data are fair game for AI to write.
Match each request to the role it puts the AI in.
Read the docs together
Projects push you into official documentation, which is dense and written for people who already know half of it. AI is an excellent reading companion as long as the docs stay the source of truth. Paste the section or point at it, then ask:
Here is the argparse docs section on subcommands. Explain it in plain
words with a tiny example that is not my project. Then tell me which two
paragraphs I should reread myself, and what to look for in them.This keeps you reading the real thing, and the "not my project" part stops the AI from quietly writing your milestone for you. If the AI's explanation and the docs disagree, the docs win; that is the Trust but Verify habit in action.
Keep a learning log
A learning log is a plain file in your repo where you write a few lines after every session: what you built, what broke, what you learned, and what you are unsure about. It takes five minutes and pays back three times.
## 2026-10-14 (M2)
- Built: add command, writes rows with csv.writer
- Broke: amounts like "12,50" crashed float(). Now I validate with a clear error.
- Learned: argparse type= runs a function on the value, so validation can live there
- Unsure: should dates be stored as text or parsed every time?First, it makes you notice what you learned, which helps you remember it. Second, the "Unsure" lines become your questions for the next AI session. Third, it is the raw material for your README and your interview stories, which is where the project pays off.
Turn it into a portfolio piece
A finished project becomes portfolio evidence when someone else can understand it in two minutes. That means a README that answers: what it does, how to run it, what it looks like (a screenshot or a short terminal recording), how it is built, and what you would improve next. Include the spec and the log; they show how you think, not just what you produced.
Be honest about AI. Say how you used it, for example: "I wrote the core logic myself and used AI to review each milestone and explain the argparse docs. It wrote the test data generator." That reads as a mature workflow. Claiming you wrote everything alone, when the history says otherwise, is a risk you do not need to take.
Then prepare the interview story. Pick one hard moment from your log and practice telling it in four parts: the situation, the problem, what you tried (including what failed), and what you learned. "Amounts with commas crashed my parser, so I moved validation into argparse and added tests for every bad-input case I could think of" is a concrete, believable story. The Getting Hired lesson has more on presenting projects.
None picked yet
- one step above
- A project that mostly uses skills you have and forces you to learn one or two new ones.
- spec
- A short document saying what you will build, what you will not, and what you want to learn.
- milestone
- A small, demoable working version of the project, finished in one or two sessions.
- walking skeleton
- The thinnest version that runs end to end, built first so later steps have a base.
- review, not solution
- Asking AI to critique code you wrote, with hints, instead of writing it for you.
- learning log
- A running file of what you built, broke, learned and are unsure about after each session.