Day 7 of 10 30 minTests firstError messagesDebugging
Tests turn "looks right" into "is right". Write or agree the tests first, let the assistant implement until they pass, and when something breaks, give it the full error and debug with hypotheses instead of guesses.
By the end of today you can
- Explain why tests make AI-written code far more reliable
- Use a tests-first workflow with an assistant
- Spot the edge cases AI drafts commonly miss
- Write debugging prompts with the full error, steps to reproduce and what you've tried
- Debug with hypotheses and evidence rather than random changes
What's inside
- 5 sections
- 3 diagrams and mind maps
- 2 code examples you can run
- 5-question quiz
- 1Tests first
- 2Try it: the bug the tests catch
- 3Edge cases AI drafts often miss
- 4Debugging prompts that work
- 5Debug with hypotheses, not guesses
Sign in free to read this lesson
Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.
Sign in free