December 17, 2009 0

String Calculator Series – Multiple Languages

By Corey Haines in Uncategorized

For the next few weeks, we will be experimenting a bit by having guests doing the String Calculator kata in different languages. I did it originally in Ruby, and we have Erlang, Scala, Clojure and Python coming. I’ll be contacting Roy Osherove, who sparked this kata, to do it in C# for us.

Watching the same solution in multiple languages can help us notice similarities in the styles, in the syntax and in the approach to solving the problem. For languages from a different family than your usual one, make sure you notice things that aren’t quite clear and take some time to look into what they are.  Erlang, for example, relies heavily on pattern matching to find the code to execute. I remember when I was fooling around a bit with Erlang, and the ‘pattern matching as a side-effect of binding’ (my words) idea clicked for me; it was amazing, and I started to look to see if there were appropriate ways to apply this idea in my day-to-day language (Ruby).

Enjoy the series, and, if you would like to be a guest katacaster, please contact me, and we can see what we can work out.

December 10, 2009 0

No Katacast this week

By Corey Haines in Uncategorized

Due to time constraints, we won’t be having a katacast this week. It takes a long time to prepare one of these, and, unfortunately, the past couple weeks have seen some unfortunate things come up to take attention. As a result, developing, practicing and screencasting a new kata each week is undoable in the short [...]

December 3, 2009 8

String Calculator

By Corey Haines in Katas

Roy Osherove and Gil Zilberfeld of TypeMock talked about the katacast series on their podcast, ‘This Week in Testing,’ and called me out to do Roy’s standard TDD practice, String Calculator. There are a few screencasts of this kata in C# linked from his page, which are well-worth watching. It is always interesting seeing the [...]

November 21, 2009 22

Prime Factors Kata — Flower Duet

By unclebob in Katas, Software Craftsmanship

Here, at long last, is a recording of the Prime Factors Kata in Ruby, done to the tune of the Flower Duet from Lakme’.  This version is much more polished than previous versions, though is still not perfect.  It will take many more weeks of practice to perfect.
Many things have changed since the last version.  [...]

November 17, 2009 0

Sorry for this week

By Corey Haines in Uncategorized

Due to some family illnesses, we probably won’t have a kata this week. I’m going to be putting on up for sure next week: Roy Osherove’s String Calculator. Check it out and feel free to do it in preparation. Sorry about it. But, feel free to watch the previous ones.

November 9, 2009 0

Back to the Checkout

By Chris Parsons in Katas

For this kata I flipped through http://codekatas.org to try and find something that interested me and that wasn’t too similar to some of the others that I knew were being worked on. After a little while, Back to the Checkout stood out.

November 5, 2009 9

Codebreaker – Marking Guesses

By Corey Haines in Katas

So, the RSpec book is almost out of beta. I’ve been through parts of it off and on over the last couple years, and I can highly recommend it. Through the book, as an example of building a real application with the BDD workflow, a codebreaker game is created. The rules are simple: the computer [...]

October 26, 2009 10

Roman Numerals

By Enrique Comba Riepenhausen in Katas

For my first kata I have chosen the Ruby Quiz #22: Roman Numerals. The original quiz is split into two parts; converting a number to it’s roman numeral and converting a roman numeral to it’s arabic representation.
In my kata I only perform the former as I wanted to keep the kata as short as possible.
I [...]

October 15, 2009 16

Number to LCD

By Corey Haines in Katas

My inaugural code kata is the venerable Ruby Quiz #14: LCD Numbers. This is a fun exercise, as it exists it two distinct parts: single-digit and multi-digit. I appreciate the natural move between them, and I often find myself focusing on one side or the other, starting from scratch and working until I have single-digit [...]