Lesson 150: datetime, naive vs UTC-aware instincts
Focus
Slow tempo wins; narrate checkpoints aloud: Intermediate drills datetime, naive vs UTC-aware instincts; spin token 1237436 makes this page unlike its neighbours.
Key ideas
- Angle
Intermediate: micro cadence10mixesdatetime, naive vs UTC-aware instincts; spin90393. - Ritual: Freeze one literal constant with a purposeful name aloud.
- Guardrail: name the surprise that triggered when literals shifted.
Example (LESSON_UID = "intermediate-150")
# Intermediate drill L150 topic-14 micro-9 pattern-12
LESSON_UID = "intermediate-150"
spin_a, spin_b, spin_c = 325, 842, 270
from io import StringIO
buf = StringIO()
rounds = 3 + 9 % 5
for idx in range(rounds):
buf.write(f"seg-{idx}-{(idx * 150 + 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-150.txt"
snap = [163, 501, 839, 186]
target.write_text("\n".join(str(x) for x in snap), encoding="utf-8")
print("scratch_bytes", target.stat().st_size, "rolling", sum(snap) % (270 + 131))
Practice
Practice 31: Verbal-diff this against lesson 149 aloud. Literal nudge 31.
Fingerprints
- lesson_uid:
intermediate-150 - umbrella band:
datetime, naive vs UTC-aware instincts(10/10) - lesson_index:
4832