Learn Ruby the easy way
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!
About Andrew Glover
Andrew is the founder of the easyb BDD framework and the co-author of Addison Wesley's "Continuous Integration", Manning's "Groovy in Action" and "Java Testing Patterns". He is an author for multiple online publications including IBM's developerWorks and Oreilly's ONJava and ONLamp portals. He actively blogs about software at thediscoblog.com.
More About Andrew »NFJS, the Magazine
2011-09-01 00:00:00.0 Issue Now AvailableBuild Your Own Technology Radar
by Neal FordProgramming with Scala Traits, Part Two
by Venkat SubramaniamMVC Meet Javascript, Javascript Meet MVC
by Brian Sam-BoddenThe Art of Groovy Command Expressions in DSLs
by Hamlet D`Arcy