💡 WHY ALEX IS RIGHT
Writing the test first designs the interface from the caller's side: inputs, outputs, errors. Code that is awkward to test hides dependencies, and finding that before implementation is cheap. For long-lived shared interfaces, tests are the contract, so write them before the code decides it.