avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 18, 2018, 07:00 AM
  • Proudly celebrating 13 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: well written article about "Ruby vs Python"  (Read 3574 times)


  • Charter Honorary Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 1,321
    • View Profile
    • Donate to Member
well written article about "Ruby vs Python"
« on: September 13, 2006, 03:24 PM »
From this post (thanks Edvard!), I came across this article discussing why its author prefers Python over Ruby by way of DZone.

It is a rather lengthy article and the author tries to not bash Ruby...

And all of this excitement and hype is for good reason. Ruby is a simple and beautiful language which is easy to learn yet hard to master. It gives power to the pros without being hard on the newbies. For this reason, it's a great language to pick up. It also has a great mix of imperative and functional qualities, and it has some very nice syntax. Ruby deserves much of the attention it is getting.

...but instead reasons why (s)he prefers Python over Ruby...

...So I took the next step and wrote a simple Python script which would do all the conversion for me, and my Rails app would simply take the uploaded file, have Python convert it to a tab-delmited file, and then Ruby would do the stats conversion.

This actually worked remarkably well, except for one major problem: speed. I tweaked the stats algorithm as much as I could to make it as efficient as possible, but the PHP app that I was converting from was still killing my Rails app by half the time when it came to the stats work. This wasn't going to cut it. Furthermore, I had more complications when as part of the statistical work I wanted to display the name of the current sheet for Excel files. This meant that my Python script wouldn't just be called into, it would also be passing info back out to Rails, and it was getting more and more complicated.

And it was at this point that I pondered why I was even using Ruby and Rails. In my very little usage of Python during this time, I found that it was just as friendly a language as Ruby when it came to syntax. I picked it up very quickly and I didn't have any problems with it. On top of that, it was a good deal faster than Ruby, and had much more library support than Ruby. So why use Ruby over Python? My main incentive had been Rails, but upon doing some research, I discovered that there are multiple extremely solid web frameworks in Python. The big two everyone talks about are Django and TurboGears, but there is also Pylons,, and numerous others. This was not the same situation I met 6 months earlier, when all these Python frameworks either didn't exist or were rather immature. They had grown up to be powerful, well-documented frameworks which stood their own against Rails...

The article is well written and well structured, but what impressed me the most was even with many many many comments -- I did not read all of them -- I couldn't see a flame war erupting. This is totally amazing! Now I believe there is still hope for the programmer suffering from "language combatism"...

Yes, I do like the article because "Python wins" and I like Python.


  • Member
  • Joined in 2006
  • **
  • Posts: 151
  • Psychedelic Coder
    • View Profile
    • site
    • Donate to Member
Re: well written article about "Ruby vs Python"
« Reply #1 on: December 04, 2006, 04:49 PM »
really really great article!

I found it very useful, since I'm a big fan of Python but never tried it on Web programming, now I'm really interested in Pylons.



  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 249
    • View Profile
    • Matt Harwood Consultancy
    • Donate to Member
Re: well written article about "Ruby vs Python"
« Reply #2 on: December 07, 2006, 05:58 PM »
Thanks so much housetier, I'm Python too  :)