Lesson 155: typing seams and graceful fallbacks
Focus
Let the literals expose mistaken assumptions quickly: Intermediate drills typing seams and graceful fallbacks; spin token 1290149 makes this page unlike its neighbours.
Key ideas
- Angle
Intermediate: micro cadence5mixestyping seams and graceful fallbacks; spin58969. - Ritual: Mirror the snippet with reversed iteration order verbally.
- Guardrail: call out latent off-by-one before shipping analogues.
Example (LESSON_UID = "intermediate-155")
# Intermediate drill L155 topic-15 micro-4 pattern-12
LESSON_UID = "intermediate-155"
spin_a, spin_b, spin_c = 599, 975, 574
from io import StringIO
buf = StringIO()
rounds = 3 + 4 % 5
for idx in range(rounds):
buf.write(f"seg-{idx}-{(idx * 155 + spin_b) % 997}\n")
buf.seek(0)
dump = buf.read()
print("lines", dump.count("\n"))
print("peek", dump.splitlines()[0] if dump else "<empty>")
from pathlib import Path
import tempfile
with tempfile.TemporaryDirectory() as scratch:
target = Path(scratch) / "scratch-155.txt"
snap = [168, 775, 391]
target.write_text("\n".join(str(x) for x in snap), encoding="utf-8")
print("scratch_bytes", target.stat().st_size, "rolling", sum(snap) % (574 + 131))
Practice
Practice 16: Export checkpoints into bullets for teammate review. Literal nudge 16.
Fingerprints
- lesson_uid:
intermediate-155 - umbrella band:
typing seams and graceful fallbacks(5/10) - lesson_index:
4957