[TDD] Overview

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

Overview

  1.Goal: Clean Code that Works

  2.Benefit:
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
RED
      b. Try your best to make your test work, asap. At this moment you can call it
Green
      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.