Saturday, January 01, 2011

Test-Driven Learning (with Koans)

I wrote a piece on my employers tech article site about learning programming languages by fixing broken unit tests meant to expose little nuggets of wisdom. The article covers projects that provide programming exercises for 3 languages: Ruby, JavaScript and Clojure. Please read and let me know if you like it:


Joe said...

I was looking through this piece (nice job, BTW) and ran across a small bug. For the ruby example, the code listing has line ten actually reading as -

assert true # This should be true

In fact, it looks like the listing has all the assertions set to true (though I'm not a ruby hacker).

I just thought you'd want to know.

Mario said...

Fixed. Thanks for catching it!