Especially TDD.
You end up writing code that looks very similar to real code that will use your soon-to-be API.
You will design a better API this way, because you're looking at it from the user's perspective.
Especially TDD.
You end up writing code that looks very similar to real code that will use your soon-to-be API.
You will design a better API this way, because you're looking at it from the user's perspective.