welcome: please sign in
RubyVsPython

It is known that

Ruby is a highly object oriented language with many descriptively named operations that you can perform on objects and a compact syntax that allows you to write more with less characters.

Python a somewhat more procedural language that has a smaller set of operations which are sometimes less descriptively named, but is not as compact as Ruby and requires more explicitness.

Therefore,

Ruby is easier to write and harder to read.
Python is harder to write and easier to read.

(See Speech vs. Vision)

However

If you spend a lot of time with Ruby, you can become more proficient at reading Ruby code since people tend to code in patterns. A compact expression that looks very confusing at first, but is used everywhere, will become like a word in a language -- you just understand its meaning.

Readability also depends on the programmer. This entire theory can be thrown out the window if you have a bad programmer (see Fortran Completeness Theorem).

Comments?

RubyVsPython (last edited 2010-04-24 09:29:42 by localhost)