I found an easy TDD kata that you can use if you want to try out some TDD. It is written by Robert C. Martin (Uncle Bob) and can be found here.
The code is in Java, but it is easily translated to any other C-like OO language. I wrote it in C#. You can find my code on https://github.com/Backhage/BowlingGameKata
Even though it is easy I learned some new things by doing it. If you use Visual Studio and write the code in C#, you will notice how much you can use the "Exract method" feature when doing this kata. Breaking out variables and naming them properly will make "Extract method" really handy.
Give it a try!
The code is in Java, but it is easily translated to any other C-like OO language. I wrote it in C#. You can find my code on https://github.com/Backhage/BowlingGameKata
Even though it is easy I learned some new things by doing it. If you use Visual Studio and write the code in C#, you will notice how much you can use the "Exract method" feature when doing this kata. Breaking out variables and naming them properly will make "Extract method" really handy.
Give it a try!
Kommentarer
Skicka en kommentar