The review workflow
Lesson 25 The ten-minute review
a checklist, and when to stop reading and run it
What you'll learn
- Run a ten-minute review in a fixed order
- Decide what to do with a finding: approve, ask or send back
- Know when to stop reading and run the code
A review with no routine is a mood: you read what catches your eye and miss the rest. Ten minutes and a fixed order beat an hour of wandering.
The idea
Use the same eight steps every time. The order matters. Cheap checks come first, because a machine does them in seconds and a red result saves you the reading: the tests, the linter and the type checker. Then the summary and the file list (is this what you asked for?), the tests (could they fail?), the signatures, and only then the fine print: money, time, input, deletes, secrets, auth.
One rule runs through all of it: when reading gets slow or unsure, stop reading and run it. Ten seconds of running beats two minutes of guessing. Each step is a lesson you have already had.
1THE TEN-MINUTE REVIEW21. Summary: what was asked, what does the AI say it did? 1 min32. Run: tests, linter, type checker. Red means stop. 1 min43. File list: anything you did not ask for? 1 min54. Tests first: would they go red if the code were wrong? 2 min65. Signatures and types, then the core logic. 2 min76. Fine print: money, time, input, deletes, secrets, auth. 2 min87. Run it once on an awkward input: empty, zero, huge. 1 min98. Decide: approve, ask a question, or send it back.
- Line 3 Machine checks first. If the tests, linter or types are red, send it back now. Do not read a diff the machine already rejected.
- Line 4 Scope creep (lesson 22) shows up in the file list long before it shows up in the code.
- Line 7 Where the bugs live: the places from lessons 20 to 24. Spend your close reading here.
- Line 8 The "stop reading and run it" step. If you can't tell what the code returns, run it.
Take away
- Same eight steps, same order, about ten minutes.
- Machine checks first, then scope, tests, signatures, fine print.
- When reading gets slow or unsure, stop and run it.
Quiz: test yourself
7 questions: a quick quiz, then a review drill. Pick an answer to see why it's right.