Prime Factors is a simple, yet interesting kata about implementing prime-factor computation. The kata was developed by Uncle Bob, together with his son. I perform it here in Vanilla Java. ► All Kata Episodes: http://goo.gl/uTSO9B ► Let’s Develop! http://letsdeveloper.com ► Don’t Miss an Episode: http://goo.gl/whzDi1 ► Kata: http://butunclebob.com/ArticleS.UncleBob.ThePrimeFactorsKata ► The […]

Code Kata – Prime Factors


Ok, now lets make it a loop. Most time I spend on the test, adapting the test stub and the existing tests to the changes. The test design is evolving and leads the way. ► All Game of Life Episodes: http://goo.gl/xc59GX ► Let’s Develop! http://letsdeveloper.com ► Don’t Miss an Episode: […]

Conway’s Game of Life #11 – Game Loop – Loop


First thing we need is for the loop to update our game state on each iteration. While we write our test, we adjust the design to the new requirements and adapt our test-stub game to support the test we want to write. But hey, it’s not a loop yet! ► […]

Conway’s Game of Life #10 – Game Loop – Update



Using Google’s Guava I can considerably simplify my implementation. I trust Google developers. Those guys generally know their handiwork. After this refactoring, I’m finally content with my implementation. ► All Potter Kata Episodes: http://goo.gl/m9E4vF ► Let’s Develop! http://letsdeveloper.com ► Don’t Miss an Episode: http://goo.gl/whzDi1 ► CodingDojo: http://codingdojo.org/cgi-bin/index.pl?KataPotter ► The Code: […]

Code Kata – Potter #7 – Introducing Google’s Guava


Finally, let’s add the discount rule for 5 books. To finish it up, I write some more tests, including an integration example, to see if everything works. All functionality is in the code, but I smell potential for improvements! ► All Potter Kata Episodes: http://goo.gl/m9E4vF ► Let’s Develop! http://letsdeveloper.com ► […]

Code Kata – Potter #6 – Discount for 5 Books ...


Discounts for 2 books are now granted. Let’s add the rules for 3 and 4 books, to show our generosity to the customers. Implementing this is fairly easy. Apparently, my previous work was not too bad 😉 ► All Potter Kata Episodes: http://goo.gl/m9E4vF ► Let’s Develop! http://letsdeveloper.com ► Don’t Miss […]

Code Kata – Potter #5 – Discount for 3 & ...



Now that the preparations are done, we can apply the 2-book-discount rule to every pair of books in our order. This finally makes our test go green! ► All Potter Kata Episodes: http://goo.gl/m9E4vF ► Let’s Develop! http://letsdeveloper.com ► Don’t Miss an Episode: http://goo.gl/whzDi1 ► CodingDojo: http://codingdojo.org/cgi-bin/index.pl?KataPotter ► The Code: https://github.com/letsdeveloper/Lets-Develop-Code-Kata […]

Code Kata – Potter #4 – Discount on all Pairs


To get our game running, we need a game loop. Since I don’t have a clue about game development, I asked the pros: Eric Smith kindly allowed me to use the material from his blogpost series “Test-Driving the Game Loop”. And here it is: Getting started with the basic concepts. […]

Conway’s Game of Life #9 – Game Loop – Concept


To finish the implementation of the 2-book-discount rule we need to apply it to every pair of books in the order. Therefore, we need to detect pairs and handle them. In this episode, I prepare the implementation for this. ► All Potter Kata Episodes: http://goo.gl/m9E4vF ► Let’s Develop! http://letsdeveloper.com ► […]

Code Kata – Potter #3 – Identify Book Pairs