开发者

Learning Ruby - 1.8 or 1.9 version?

开发者 https://www.devze.com 2022-12-16 22:15 出处:网络
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 开发者_如何学CC & Java).

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 开发者_如何学CC & 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.


(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.


Hands down, go with 1.9. There's not that much of a difference if you're a web developer just starting out with Ruby. And by the time you get to the point where the version nuances matter, everything will be on 1.9.


i think you can start in 1.9 its more better.. its nearest future

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号