Skip to main content
๐Ÿ“œ WAYPOINT LESSON

Family inspection

โญโญโญ advancedโณ 10 min read๐Ÿ“ Lesson 235 of 256

Repair the whole family of inputs the bug class corrupts โ€” and calibration matters: not every weird line is a bug.

Family inspection. After repairing, ask the family question: inputs of the same shape โ€” other empty inputs, other ties, other single-element cases โ€” would this same bug class corrupt? Your repair must handle the whole family, not one specimen. This is why the hidden tests always include at least one sibling of the symptom case.

For the exam: debugging MCQs give you the snippet and FOUR proposed single-line fixes. The wrong options are other classes' fixes โ€” plausible, well-written, and aimed at a different bug. Identifying the CLASS first eliminates three options without testing any of them. That is the lab's payout: taxonomy turns a search problem into a recognition problem.

โšก Now practice

Ready to Code
Diagnosis gauntletSix snippets, six error classes; name the class, then repair.
6 challenges ยท ยท ~60 min