481 B
481 B
Drill: break-dependency
Goal
Introduce one seam that reduces coupling to a hard dependency.
Prompt
Find one hard dependency in code/ such as time, randomness, persistence, network, UI, or global state. Introduce the smallest seam you can so that behavior can be controlled more easily in tests.
Success conditions
- One dependency is isolated behind a seam
- The change is small and reviewable
- You can explain the enabling point and why it is safer to change now