We rushed along and accumulated some technical dept in our test suite. For the next feature I intend to implement, this is going to hurt us! So first thing to do is clean up the tests. ► All Game of Life Episodes: http://goo.gl/xc59GX ► Let’s Develop! http://letsdeveloper.com ► Don’t Miss […]

Conway’s Game of Life #14 – Game Loop – Test ...


1
In the beginning of this year, I decided to organize a code retreat. A little later Simone Bächle pointed me at jbrains’ lovely example of a messed up trivia-game implementation and the idea of a Legacy Code Retreat. I quickly decided to give the concept a try and that’s how […]

1st Darmstädter Legacy Code Retreat


1
Did you know you can access GitHub via SVN? While preparing my 1st Legacy Code Retreat, I was looking for a way to checkout a subfolder of a GitHub repository, when I stumbled across a post on StackOverflow. For example, I can checkout only the “src” folder of my “foo” […]

Checkout Parts of GitHub Repositories Using SVN



Let’s make our game loop interactive! Without user input any game is boring, right? So we need respective handling in the loop. Int his episode I’m test-driving it into our code. ► All Game of Life Episodes: http://goo.gl/xc59GX ► Let’s Develop! http://letsdeveloper.com ► Don’t Miss an Episode: http://goo.gl/whzDi1 ► Test-Driving […]

Conway’s Game of Life #13 – Game Loop – Input


My core implementation in place and tidied up, I start adding the next features: Using Java 8 streams, extending the delimiter syntax is quite easy. This concludes the kata. Nice challenge to get to know Java 8 streams! Try it for yourself. ► All Kata Episodes: http://goo.gl/xicl9c ► Let’s Develop! […]

String Calculator Kata 04 – More Delimiters w Java 8 ...


Next requirement is to check for exceptional cases an throw. I use JUnits ExpectedException Rule to test exceptions and their message. I use more Java8 Streams features to check for the exceptional cases and to build the exception message. As always, I clean up after myself. ► All Kata Episodes: […]

String Calculator Kata 03 – Testing Exceptions (JUnit) & Streams ...



Next task in the kata is to allow arbitrary delimiters in our sequence of numbers. Delimiters are specified by an (optional) prefix in the string. Hence, we need some logic to split and interpret both parts. First, I get it to work, then, I refactor to clean up. ► All […]

String Calculator Kata 02 – Specify Delimiters


This kata is about parsing a sequence of numbers from a string and adding them up. I focus on Java 8 streams in the implementation, to explore this particular language feature. In this first episode, I get the basic functionality to run. Test-driven, of course. ► All Kata Episodes: http://goo.gl/xicl9c […]

String Calculator Kata 01 – IntStream


Third step: We want the loop to render the game. This has to happen after the update, otherwise the game might lag. Order is easy to ensure with handcrafted stubs! ► All Game of Life Episodes: http://goo.gl/xc59GX ► Let’s Develop! http://letsdeveloper.com ► Don’t Miss an Episode: http://goo.gl/whzDi1 ► Test-Driving the […]

Conway’s Game of Life #12 – Game Loop – Render