This post originated from an RSS feed registered with Python Buzz
by Ted Leung.
Original Post: Python and Ruby compared and contrasted
Feed Title: Ted Leung on the air : computers/programming/python
Feed URL: http://www.sauria.com/blog/computers/programming/python?flav=rss
Feed Description: Ted Leung on the air: Open Source, Java, Python, and ...
Lots of Python and Ruby comparisons out there:
Jim Weirich
observes that Pythonistas and Rubyists bring different assumptions to the table:
Python follows C++ and Java in using "." as a structure selector operation, while Ruby is more closely attuned to Smalltalk's message sending paradigm. Both approaches work and are interally consistent, but be prepared for surprises if you try to interpret one using the assumptions of the other.
He also shows the result of his
line noise calculator, which computes the number of line noise characters is a file. He ran this over equivalent C++, Java, Perl, Python, and Ruby code. It's instructive to see the programs laid out all in a row and see how much shorter the Python and Ruby programs are. I would like to see larger samples though, because I think that in larger Ruby programs, the line noise ratio increases.
Jeffrey Shell blogs on
Python's philisophy of simplicity and then references a
comp.lang.python post that goes over his assessment of Ruby vs Python in great detail.
In the blog post, he extols the Python module system and quotes Tim Peters' "The Zen of Python". The newsgroup post goes over the stuff in Ruby that is matched by Python 2.2.
Hans Nowak has a series of 3 (so far) comparison posts. Here's some things I picked up: