Commit 4605ab8
committed
Document the comparison-loop lesson from the strings fix
After fixing strings to include 'café' in the byte-count comparison
loop, audited 109 examples for similar gaps.
Two probes:
- Find cells with explicit comparison loops `for ... in [(...)]:`
iterating over 2-3 items. Found 5; only strings was a topic
spectrum (English / French / Thai). The other 4 (for-loops,
collections-module, async-await, async-iteration-and-context)
iterate over example names or async features — not category
spectrums needing a stepping stone.
- Find examples whose summary enumerates 3+ named items but
whose first cell mentions only 1-2 of them. Heuristic was
noisy: 60 hits, all false positives on closer inspection.
The truly-three-category examples (numbers, comprehensions,
runtime-type-checks, classmethods-and-staticmethods,
structured-data-shapes, truth-and-size) spread the categories
across separate cells instead of one comparison loop. That's
a valid pedagogy — one cell per category, building up.
Conclusion: the strings fix was the only actionable case. Recorded
the narrow lesson in docs/lessons-learned.md so future
comparison-loop cells start with the spectrum filled out.
No code or contracts changed. The heuristic for "missing topic
category" is too topic-specific to mechanise as a contract; this
stays guidance.1 parent 52ebbf5 commit 4605ab8
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
0 commit comments