r/Python • • Jan 19 '12

PHP vs. Ruby vs. Python [infographic]

http://geekndev.com/wp-content/uploads/2012/01/php-python-ruby-infographie-gnd-geek
4 Upvotes

9 comments sorted by

11

u/[deleted] Jan 19 '12

"principle of least astonishment" ?? ruby? not in my experience.

3

u/pinpinbo Tornado|Twisted|Gevent. Moar Async Plz Jan 19 '12

Not sure if I agree with the "usability" and "ease of learning" comparisons. Ruby and Python are more or less the same in those categories.

5

u/blazes816 Jan 19 '12

I won't comment on the usability, since that seems more subjective to me, but I would definitely agree that Python is much easier to learn for a complete beginner.

Many of Ruby's concepts are very difficult to grasp, and I couldn't imagine many non-programmers being able to get into it well.

(Note that I am primarily a Ruby developer who is currently employed as a Python dev, so I do tend to heavily favor Ruby).

3

u/Phifty Jan 20 '12

How can Python be influenced by Java when Python existed 3 1/2 years before the first Java release?

1

u/pingveno pinch of this, pinch of that Jan 22 '12

Decorators and some of the standard library are influenced by Java.

2

u/obtu .py Jan 19 '12

I don't know what happened to the Tiobe rankings. Possibly a search engine revised its result count estimate, because it doesn't correlate to anything appearing in search trends.

1

u/tukotih import antigravity Jan 20 '12

Repost, but a good one. Since I've never used Ruby. What is it's advanttages over python?

1

u/ExoticMandibles Core Contributor Jan 21 '12

Python isn't "usable" because of the whitespace indenting? You could just as easily ding Ruby by saying "Ruby uses strict brace enforcements for multiline blocks."

I'm guessing this was made by a non-Python programmer. Once you've programmed in Python for a while you just don't care about the indenting anymore. In fact Python is wonderfully usable, particularly because of the TOOWTDI principle (which Ruby lacks).

2

u/grizzgreen Jan 23 '12

i like python because of the indenting. when working with multiple people, it forces similar coding w/out having to discuss it

1

u/freyrs3 Jan 22 '12

The bottom chart makes me cringe. Average runtime split by "Object Oriented" and "Functional"... this is absurd on so many levels.