Hacker News new | ask | show | jobs
by Strilanc 2125 days ago
Common advice when designing an API is to experiment with using the planned API before you implement it.

TDD is one way of doing this exploration, where the exploration is codified into actual code using the API and including assertions about the behavior you intend to implement.