How will TDD help build a logging library?
The biggest benefit we’ll get from using TDD to build a logging library is the customer focus. It’s easy to make assumptions about how something should be designed, especially when there are already many common solutions that do something similar.
It’s like a trail that’s easy to follow. The trail might take you someplace you want to go or maybe nearby. And if the destination is vague or unknown, then a trail becomes even easier to follow. But if you know exactly where you want to go, then you can follow a trail when convenient and leave the trail when it no longer takes you where you want to go.
TDD encourages us to think about how we want to use the software that we’re building. This, in turn, lets us customize the solution to best fit our needs. In other words, it lets us know when to leave the trail and start a new path.
We also benefit from having tests that can verify the behavior of the software...