[TDD] Overview

I’ve been reading this book of TDD, written by Kent Beck


  1.Goal: Clean Code that Works

Manage fear during Programming
  3.Three Steps:

      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).
Refactor it.

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.