Lesson 080: Properties bridging fields and computation
Focus
This page is deliberate repetition with new literals: Intermediate drills Properties bridging fields and computation; spin token 716441 makes this page unlike its neighbours.
Key ideas
- Angle
Intermediate: micro cadence10mixesProperties bridging fields and computation; spin50301. - Ritual: List two regressions CI should catch later.
- Guardrail: pick the budget that keeps this rehearsal honest.
Example (LESSON_UID = "intermediate-080")
# Intermediate drill L080 topic-7 micro-9 pattern-12
LESSON_UID = "intermediate-080"
spin_a, spin_b, spin_c = 517, 381, 894
from io import StringIO
buf = StringIO()
rounds = 3 + 9 % 5
for idx in range(rounds):
buf.write(f"seg-{idx}-{(idx * 80 + 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-80.txt"
snap = [93, 623, 162, 692]
target.write_text("\n".join(str(x) for x in snap), encoding="utf-8")
print("scratch_bytes", target.stat().st_size, "rolling", sum(snap) % (894 + 131))
Practice
Practice 34: Pair-snippet assertions about checksum ranges you'd ship. Literal nudge 34.
Fingerprints
- lesson_uid:
intermediate-080 - umbrella band:
Properties bridging fields and computation(10/10) - lesson_index:
2592