R – Learning Ruby – 1.8 or 1.9 version

rubyversion

I've been learning Python for a while, but the projects I want to do are better suited for Ruby, for example the SAC API for CSS is available in Ruby (and C & Java).

Anyhow, which version of Ruby should I learn right now considering that I'll be building only web apps.

Thanks for your comments and advices.

Best Solution

(Just) because you are planning to build web apps, Ruby 1.8.7 seems to be the most appropriate version for the following reasons:

  • The Rails ecosystem has still some problem with Ruby 1.9
  • Ruby Enterprise Edition is based on Ruby 1.8.7 and this is the Ruby interpreter you are likely to use in production unless you don't use jRuby
  • jRuby is based on Ruby 1.8.7, if you plan to use it

However, you should always keep in mind that Ruby 1.9 is the future. So, avoid using Ruby 1.8.7 deprecated features and you should definitely have a look at the Ruby 1.9 roadmap.

Avoid Ruby 1.8.6. The upcoming Rails release (Rails 3) won't work with Ruby 1.8.6.