问题
I am new to programming.. I was thinking to start learning with Ruby or Python. My main task would be web development. But I cannot choose between them. Which language do you think I should learn?
回答1:
You may find these SO links useful:
Link 1
Link 2
You may also find this non-stackoverflow link to be useful: Python vs. Ruby
My 2 cents: For web development Ruby seems to be better option than Python, however having said that you might want to know the popularity of two languages - Python is more popular than Ruby.
回答2:
Read into both of them and decide for yourself, it's the only right way to go.
They're both easy to learn, they're both backed by a big community, they're both very suitable for web development and both have very good web development frameworks again with big communities behind them. There is just no killer argument for a single one.
回答3:
I recommend going into Python and Django development, but that's my opinion. You need to take both for a spin and see which you like. To get started in either, check out these resources. Good luck!
- The Django Book
- Official Django Tutorial
- Ruby on Rails Documentation
- Rolling with Ruby on Rails
回答4:
I recommend Ruby but this is about as subjective as a question can get and it is about to be closed, I imagine.
Python is more popular and more mature. It's better if you want a job at Google.
Ruby has a "better", or at least a very highly regarded web environment in Rails, and arguably a somewhat better or at least purer object model.
Python has that way-cool indentation-specified block structure, which is nice, but Ruby is a reincarnation of Smalltalk, which is even better.
You can't lose here either way. To give a really subjective answer to a subjective question: Ruby is the kind of thing you can fall in love with whereas Python is more of a "really good tool".
来源:https://stackoverflow.com/questions/3644685/python-or-ruby-which-one-should-i-learn