Learn Ruby the easy way

how-to
Feb 24, 20112 mins

A few years back while on a conference panel discussion, a panel member (Stu Halloway, if my memory serves me) in response to a question regarding how to quickly learn new APIs suggested writing unit tests. That is, the suggestion was to test the new framework, library, language as a means for learning how to use it.

I recently found myself participating directly in this excellent suggestion in an attempt to become more fluent in Ruby. The good folks at EdgeCase have put together an extensive suite of tests (274, in fact) at rubykoans.com where the expressed goal is

to learn the Ruby language, syntax, structure, and some common functions and libraries

I’ve found this project intensely helpful — while I’ve coded in Ruby before, I’m by far not conversant enough to stand on my own without some sort of reference — nevertheless, working through the various test cases has increased my awareness of Ruby’s linguistic features as well as increased my overall Ruby confidence.

I highly recommend to anyone wishing to learn Ruby that they check out rubykoans.com; what’s more, I hope to see this style of “learning framework” employed more often regardless of underlying language, platform, or framework. Thanks, EdgeCase!

Looking to spin up Continuous Integration quickly? Check out www.ciinabox.com.
andrew_glover

When Andrew Glover isn't listening to “Funkytown” or “Le Freak” he enjoys speaking on the No Fluff Just Stuff Tour. He also writes articles for multiple online publications including IBM's developerWorks and O'Reilly’s ONJava and ONLamp portals. Andrew is also the co-author of Java Testing Patterns, which was published by Wiley in September 2004; Addison-Wesley’s Continuous Integration; and Manning’s Groovy in Action.

More from this author