Monday, May 2, 2016

Interesting Talk: "Trucos para que tu código no aparezca en los Papeles de Pánama"

I've just watched this wonderful talk by Miguel Ángel

Kata: Yatzy Round 1 in Java

I did the first round of the Yatzi kata in Java using jMock.

As I tell in the README, I used "a funny way to explore design having strict mocks in place". Even though it's not very orthodox, it's working fine for me because it helps me to avoid accidentally creating obstacles to refactor.

If I have some time, I'll explain it in a future post. If you're curious about it, check the commits to see its mechanics (I committed after each green and each refactoring step).

You can check all the code in this GitHub repository.

Saturday, April 30, 2016

Interesting Paper: "Objects of value"

I've just read this very interesting paper by Kevlin Henney

Kata: Mars Rover in Java (recorded)

I've recorded myself using TDD to code the Mars Rover kata in order to be able to later watch me and detect problems to correct.

This is the recording of what I've done so far (all the possible movements of the rover): If you decide to watch it, please do it at 2x speed (I still write slowly).

These are the commits after each green and every refactoring step.

You can see the code in the using_java_enum branch of this GitHub repository.