Part 2 — Build
What you'll do#
- Create the smallest thing that does something real
- Connect a second piece to it
- Break it deliberately, and read the error
Steps#
One file, one function, one route — whatever the minimum is here. Run it before adding anything else.
The seam between two parts is where the ideas become concrete, and where nearly every real bug lives. Run it again.
What happens with missing input, a wrong value, or nothing at all? A tutorial that only shows the happy path teaches half a skill.
Change one thing so it fails, read the error, and change it back. Recognising this error later is worth more than the fix.
Fill this in: replace each step with the real code for docs, and show the result after each one rather than only at the end.
Check your work#
You are done with this part when you can say what each file you created is for, and which one you would delete first if you had to. If either answer is unclear, re-read the step that produced it — the confusion compounds in part three.