SpringOne 2GX 2011

Chicago, October 25-28, 2011

Learn Ruby the easy way

Posted by: Andrew Glover on 2011-02-24 11:32:00.0

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.


About Andrew Glover

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 Available
  • Build Your Own Technology Radar

    by Neal Ford
  • Programming with Scala Traits, Part Two

    by Venkat Subramaniam
  • MVC Meet Javascript, Javascript Meet MVC

    by Brian Sam-Bodden
  • The Art of Groovy Command Expressions in DSLs

    by Hamlet D`Arcy
Learn More »