String Calculator Kata

10 Feb 2010

A code kata is a simple coding task that you perform repeatedly, analysing each performance to improve your skills.

Corey Haines has been running katacasts.com for a while now. The string calculator kata has proven to be popular under submitters, so I thought it’d be interesting to do one in clojure.

This particular kata involves summing a string of numbers separated by commas and/or newlines. Custom delimiters are also allowed (represented as the first line starting with //). Any negative numbers found should throw an exception.

String Calculator Kata from Tom Crayford on vimeo.

If you have any feedback, leave a comment at the katacasts site, or message me on twitter