Roman Numerals Java kata
Oct 16, 11 by Juan Lebrijo about UML, methodologies, Java, blog
Continuing with kata series, here we have roman numeral kata. Simple, you have to convert roman to integer and integer to rman. In order to improve other things I purpossed to follow KISS and SOLID principles. Also creating a Fluent Interface based on static methods:
  • convert(roman).toArabic();
  • convert(arabic).toRoman();
The movie on Youtube: Kata code here: romannumerals-fluentinterface-solid.zip Finally, a class diagram illustrating the Open/Close principle which I tried to follow, here we can add more numeric systems only by adding the corresponding Number subclasses (Octal, Hexadecimal,...):
model.png 10.5 KB
String Calculator Java Kata
Oct 10, 11 by Juan Lebrijo about methodologies, agilism, Java, blog
In order to improve my kunFu (my TDD, my Java, and my work in general), I'm planning doing some katas, and publishing here. If somebody want to see how I solve them. Based on 12meses12katas web (thanks @kinisoftware for your effort on this initiative!!). The first one, String Calculator, I solved there: I've packaged the code here: String Calculator Java Kata. And you can see immediately at Git Hub repo. Hope you enjoy as much as I did programming it( sure, I enjoy pretty much programming!! I think that it isn't so weird, is it? ;-P )
String Calculator Java Kata
Oct 10, 11 by Juan Lebrijo about methodologies, agilism, Java, blog
Con el fin de mejorar mi kunFu (mi TDD, mi Java, y mi oficio en general), pretendo hacer unas katas, y publicarlas aquí por si a alguien le interesa como las he resuelto, y se anima a resolverlas. Me estoy basando en las katas de la web 12meses12katas (gracias @kinisoftware por tu esfuerzo en esta iniciativa!!). La primera es StringCalculator, yo la he resuelto así: El código os lo empaqueto aquí: String Calculator Java Kata. También lo podéis ver en el repo de Git Hub. Espero que os divirtáis viéndolo  tanto como yo lo hice haciéndolo ( que sí, que me lo paso muy bien programando!!. Digo yo que no será tan raro, no? ;-P )