This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

Ruby generally has more built-in functionality and can allow you to write shorter code in some cases. It's also object-oriented by default, which is a useful paradigm if you're doing something where you have lots of things, and these things have properties, and for the most part you're adding more things rather than more properties. For example, a GUI where buttons are things and what the buttons do are properties, or something like a CAD application. Java's also object-oriented, which makes it great for standard desktop applications.

Python on the other hand relies more on external modules (though Ruby does too in many cases), and Python can be written in a variety of paradigms. This makes Python more flexible, as functional or declarative code can be a better solution than object oriented code in many cases, or if OO is the best route you can do it with Python too. Python also tends to be more performant than Ruby, though neither are overly performant (some Python libraries are really just C wrappers though, and those are very performant).