« Kata Five - Bloom Filters | Main | Kata Three: How Big, How Fast? »

January 28, 2007

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83451c41c69e200d8346b95a269e2

Listed below are links to weblogs that reference Kata Four: Data Munging:

» Dojo IX from Jabbering Giraffe
Last night was the latest Coding Dojo. It was an astonishing success. Not only did we all manage to enjoy ourselves, we actually produced some working code! We were attempting Kata Four (data munging), which is split into three parts. Admittedly, we only [Read More]

» Coding Dojo 9 from Jabbering Giraffe
Im just back from Dojo#9. We attempted Kata 4 again, but in Ruby this time. Even though I was the only one with much Ruby experience behind me, it still wasnt much of a problem in practise. I did some cheat sheets, but they didnt seem [Read More]

Comments

ClubPenguinCheats

I solved it with Groovy in 12 lines clean code. But the logic was mabye too easy.

emson

Nice little problem - here is my solution in Ruby:

http://blog.emson.co.uk/2010/05/code-kata-four-exercise-a-ruby-solution/

Yann

I did the problems in Python and learned a LOT! thanks! Now I'll just have to do them in Java as that is what I will be forced to use at university.

John Page

Nice problem. I tried out part two and it was an instructive excercise in several ways.

Toby

I couldn't find any code worth factoring out!

sed 's/^[ ]*//g' < weather.dat | grep ^[[:digit:]] | sort -n --key=2 | head -n1 | cut -f1 -d' '
sed 's/^[ ]*//g' < football.dat | grep ^[[:digit:]] | awk ' { print ($7 - $9) "\t" $2 } ' | sed 's/^-//g' | sort -n | head -n1 | cut -f2

Ivan Dolvich

That is a nice Task, I solved it with Groovy in 12 lines clean code. But the logic was mabye too easy.

dj

OT: The headings "D" and "L" are the wrong way around in the football table. It's 3 points for a win, 1 for a draw and none for a loss.

The comments to this entry are closed.