« 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

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.

Ivan Dolvich

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

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

John Page

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

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.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment