Summary
Keeping testing on your mind from the beginning of a project can lead to higher-quality code throughout the development process. Test-driven development requires that you write test code before the actual production code and that you write production code to pass the tests. By taking this seemingly backward approach, you can be considerably more confident that your code functions as intended because the tests are less colored by your knowledge of the code.
