my dog learned polymorphism
The moose likes Ruby and the fly likes Ruby beginners Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Ruby beginners" Watch "Ruby beginners" New topic

Ruby beginners

vaibhav mishra
Ranch Hand

Joined: Jun 18, 2008
Posts: 168
I know a little bit of Java and am starting to learn python, is there any advantage of ruby over python, I am not talking about high-class stuff like GC and stuff, just want to know for a beginner's perspective which one is easier to learn, I tried ruby before but it did not took off, to make it clear I am a undergraduate student. I also read in amazon that this book is good for starters.

Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
Personally, I've found Ruby much easier (and exciting) to learn compared to Python. The syntax is nicer and error messages tend to be easier to grok than some of the messages I remember getting from the Python interpreter. Of course, this is subjective.

On a slightly less subjective stance (but just slightly), Ruby has a cleaner syntax in the sense that object-orientation hasn't been bolted on top of a non-OO language afterward like it was in Python.

Also, the Ruby community is very lively and fairly friendly. IRC and #ruby-lang is your trusted friend 24/7.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
vaibhav mishra
Ranch Hand

Joined: Jun 18, 2008
Posts: 168
Thanks for replying , and about that OO part you said, I experienced that too.
David Black

Joined: Aug 16, 2009
Posts: 13
Hi --

I never learned Python in any depth (partly because I discovered Ruby, and fell in love with it, right around the same time I was tinkering with Python), but I've noticed that people say very similar things about the two languages. In fact, I remember an "Intro to Python" talk -- I think it was at OSCON -- where I literally felt like if you substituted "Python" with "Ruby", it could have been an intro to Ruby talk, just about. It was all about clean syntax, the power of the language, how it stays out of your way, how directly it translates your thoughts into code, etc.

I thought it was interesting that the commentary on the two languages, at least at the intro/overview level, was almost interchangeable.


Ruby training coming up in September! David A. Black and Erik Kastner team up for fast-paced, four-day Ruby intro, in New Jersey, September 14-17. See or contact David.
Michael Sullivan
Ranch Hand

Joined: Dec 26, 2003
Posts: 235
This webpage gives alternating perspectives on Python vs. Ruby. An interesting quote from the article summarizes how some people feel about their language choice:

"So far Pythonistas have emphasized their language's ease through consistency, extensive libraries, docs, etc, and argued that Ruby's advantages in elegance are overstated or nonexistent. Rubyists have stressed their language's ease through conceptual elegance, slightly greater depth of OO, the power of BlocksInRuby, and the nice feeling you get from doing things the RubyWay."
vaibhav mishra
Ranch Hand

Joined: Jun 18, 2008
Posts: 168
@Michael thanks for the link , although most of it is too much for me to understand but even then it gives a perspective

@David as you said it might be a matter of personal choice, thanks for sharing your experience.
I agree. Here's the link:
subject: Ruby beginners
It's not a secret anymore!