March 5, 2010 2

Michał Kwiatkowski – Sum of Even Fibonacci Numbers

By Corey Haines in Katas, Software Craftsmanship

After a short break, we are back with an interesting kata in Clojure. Michał Kwiatkowski has tackled a project euler problem, finding the sum of the even Fibonacci numbers less than 4 million. Fun, indeed. Included in this katacast are 3 different solutions.

Michał Kwiatkowski is a software developer from Gdańsk, Poland. He builds RoR applications and in his spare time works on open source projects like Pythoscope (http://pythoscope.org). His interests include programming languages, artificial intelligence and automated testing.

Here’s what he says about this katacast:

I started doing kata after watching Micah Martin’s lecture, about 3 weeks ago. I wanted to start simple, so I’ve chosen a very basic problem from Project Euler: finding a sum of even Fibonacci numbers lower than 4 million. Each day, I tried a new technique or programming language. I studied solutions of others. Finally, I’ve settled on a set of three solutions, which are recorded in this video.

Main theme of this kata is different techniques for iteration which may be used in Clojure. First is a functional-style iteration using built-in “loop,” a second is a solution in a little DSL of sorts, via the “iter” library and third solution is based on lazy streams, inspired by Haskell.

Interesting thing about this kata was that even after solving the problem multiple times I could still make stupid mistakes from time to time, and writing a solution would take me 20 minutes instead of a minute. This shows how it’s important to practice basics of our craft *every single day*. There’s also a great value in approaching a problem from different perspectives. I’ve learned a great deal about the problem itself as well as about the tools I used to solve it. It’s a great way to asses strong and weak points of programming languages.

Even though it includes 3 solutions, this katacast is nice and short. I enjoyed watching it a lot.

If you’d like to contact Michał, you can below:

Homepage: http://joker.linuxstuff.pl
Tumblr blog: http://time-loop.tumblr.com
Twitter: infrared
Enjoy:

February 11, 2010 1

String Calculator – Clojure

By Corey Haines in Katas

Okay, okay, I know that I said we weren’t going to have another string calculator kata, but this one is in Clojure, and I wanted to get it up on the site. It is fun to watch, especially if you compare it to the Scheme one. Tom Crayford has been working on it for a [...]

February 1, 2010 1

String Calculator – Groovy

By Corey Haines in Katas, Uncategorized

After being away for a couple weeks due to conferences and sickness, we present another entry in our “Same Kata, Different Languages” series: the String Calculator in Groovy by Itay Maman. This will most likely be the last of the String Calculator katas for a while, as we’ve been doing them for a long time [...]

January 7, 2010 5

Prime Factors Kata (Annotated)

By unclebob in Katas

Uncle Bob walks and talks his way through the Prime Factors Kata.
No music, but lots of commentary.

January 6, 2010 15

String Calculator – Python

By Corey Haines in Katas, Software Craftsmanship

Continuing our series of ‘Same Kata, Different Languages,’ we have a very special performance in Python by Gary Bernhardt:
Gary Bernhardt is an independent software contractor in Seattle specializing in the dynamic languages Python and Ruby. A brutal minimalist, he is bent on the destruction of all existing software except Emacs and Vim, the two One True Editors.
Gary’s a [...]

December 30, 2009 5

String Calculator – Scheme

By Enrique Comba Riepenhausen in Katas, Software Craftsmanship

Next in the series ’same Kata, different language’ I wanted to post my very own Kata in Scheme.
Currently I am learning Scheme. Due to my lack of knowledge in Scheme I could not write the tests (nor code) for the negative numbers part of the string calculator. I would have loved to get there, but [...]

December 27, 2009 0

My Response to Roy Osherove’s Feedback on my String Calculator Kata

By Corey Haines in Feedback

Since the String Calculator kata was posed by Roy Osherove, I asked him to take a look at my solution and give me feedback. He was kind enough to write an insightful blog post with some comments. Since he took the time to write them, I thought it fair to weigh in with my responses.
Roy:
Partial [...]

December 24, 2009 3

String Calculator – Scala

By Corey Haines in Katas

Continuing our series of ’same kata, different languages,’ Giordano Scalzo provides us with a great view of the kata in Scala. I’ve fooled around a little bit with Scala, but definitely felt like I was just writing java in a not-quite-different environment. Watching Giordano code was very refreshing.
Giordano Scalzo is a Software “jack of all [...]

December 17, 2009 9

String Calculator – Erlang

By Corey Haines in Katas

For our first in the series of ’same kata, multiple languages,’ we have a treat for everyone, Gabriele Lana is doing it in Erlang.
Gabriele Lana is a software journeyman living in Milan (Italy). Since 1998 he works as a developer and consultant. In 2000 he started using Agile practices in real time and embedded industries, proving their effectiveness [...]

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 [...]