سؤال

I used to write some Python, and I know there are a lot of difference between Python 2.x and Python 3.x
Current now, I hope to use some Ruby to write a website (Maybe use Rails), but I am afraid that there will be the same problem in Ruby like Python.

Since I am a newcomer to Ruby, I just wonder what should I learn Ruby 1.x or Ruby 2.x?

هل كانت مفيدة؟

المحلول

You should use ruby 2.1.1. The difference between Python 2 and 3 is so great that there are major backward compatibility issues. As this is not the case with ruby 1.9 vs 2.X you better start with the most current technology.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top