I’ve been reading this book of TDD, written by Kent Beck
1.Goal: Clean Code that Works
Manage fear during Programming
a. Write a test case in advance of writing code. Of course it won’t work, so it’s
b. Try your best to make your test work, asap. At this moment you can call it
c. At this moment your code is ugly and there may be duplication(Duplication between the test and the code, as well as that between the code and the code).