Learning Ruby - 1.8 or 1.9 version?

不羁的心 提交于 2019-12-23 15:32:06

问题


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.


回答1:


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




回答2:


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.




回答3:


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



来源:https://stackoverflow.com/questions/2108854/learning-ruby-1-8-or-1-9-version

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!