TDD Katas
TDD(Test Driven Development) Katas are exercises that are designed to help programmers improve their TDD skills. The idea behind a Kata is to learn by repeating over and over again. The mechanics of TDD need to be embedded into the brain of moderns programmers and that’s why we practice Katas.
Remember the Steps:
- Write a failing test
- Write the minimum code to make your test pass
- Refactor
Keep repeating those steps again and again as many times as you can and you will master the craft of TDD.
After you finish a Kata, delete your code and try again. It is likely that your next solution will be different. Here I am going to leave you some videos of me doing some of the classic TDD’s. I hope you find them useful.
Roman Numerals (From Arabic to Roman)
Roman Numerals (From Roman to Arabic)
FizzBuzz
Conway’s Game of Life
Originally published at http://javing.blogspot.com/p/tdd_9.html