gypsydave5

The blog of David Wickes, software developer

Programming Language Koans

I finished the Ruby Koans today. I’d been pretty close to the end before I started study at Makers Academy, but it’s good to have them done. I noticed I flew through the last few regardng metaprogramming - I’ve been taught well.

Koans are an interesting tool to learn a language. Instead of teaching a fact, they instead encourage solving a problem. The problems are koans in the sense that the solution to each one reveals a new aspect of Ruby to the student. This starts with simple operators and ends with metaprogramming techniques. The solution tends to be of the ‘fill in the blank’ form, although sometimes they require editing a class.

What I admire about this technique is the following:

If you’ve not tried out a set of koans, here’s a short an incresingly long list to try out:

I’ve started the Clojure Koans. Where the Ruby Koans were verbose, these are terse. I like terse. Very often I felt like I was being told what to write as the answer to the Ruby Koans. That was right for Ruby, but not for Clojure.

So - go learn something new today!