Why software fundamentals matter more than ever
After this lesson you can write one check before asking for a change and use its failure to steer the tool. You do not need to be a programmer for the practice. Before you start: complete the plan, build and check lesson.
Why fundamentals matter more
Claude can produce a change faster than you can read it. A check that can fail tells both of you whether it works. Programmers call one form of this test-driven development:
- Red: write a check and see it fail. This shows that it can detect the problem.
- Green: make the smallest change that passes.
- Refactor: tidy without changing behavior, and run the check again.
A check that has never failed may be checking nothing. Two other fundamentals help: small parts that can be tested alone, and names that say what a part does.
Worked example (fictional)
Rule: an order of 50 or more ships free. Before any change, write three cases: 49 pays, 50 is free, 51 is free. The first version uses "more than 50", so the case of 50 fails. The failure names the fault. After the correction all three pass. Had the checks been only 10 and 100, the mistake would have passed.
Practice
In a practice folder create scores.csv with six invented scores. Rule: 60 or more is "pass". Before asking Claude for a result, write in expected.md what 59, 60 and 61 should give. Ask for results.csv. Then change one expected answer on purpose, ask Claude to compare, confirm that the comparison fails, and restore it.
Finished when the three cases match, you saw one failure, and the expected file again says what you first wrote.
Common errors and recovery
- Claude changes the check so that it passes. Restore it and say that the check is fixed; only the result may change.
- Only easy values are checked. Add the value at the edge and one on each side.
- "All tests pass" with no output. Ask for the command and its output, or run it yourself.
Check yourself
Claude says a fix works, and the check passed both before and after it. What does that show?
- A. The fix works. B. The check did not detect the original problem. C. The problem never existed.
B is the safe conclusion: the check cannot tell fixed from broken. A is tempting because it passes. C is possible, but this check does not show it.
Look back
Where did your first checkable task state its check?
Further study (optional)
The attached talk discusses tests and software design for developers.
Sources
Opened 2026-11-25.
