Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
Python v Ruby

I've been asked for a comparison!

• Both are object oriented scripting languages - or rather claim to be scripting languages, but are really compile-and-run via their own virtual machines, in just the same way as Perl and Java are.

• Both are modern, Open Source languages with a wide range of standard classes and methods provided as standard, and lots of other libraries available too.

• Python is a clean, minimalist language which is not cluttered with lots of alternative syntax and special characters @ and $ and the like used in conjunction with variable names, whereas Ruby uses a number of those specials to indicate variables, scope, etc. From the programmer's viewpoint, this means that Python code may be a little longer, but will be easier to read and maintain by a programmer who doesn't spend large amounts of time coding in the language.

• Ruby also provides capabilities such as topicalisation which allow the knowledgeable programmer to shorten code to the confusion of the novice maintainer. No bad thing if you have a small team of Ruby pogrammers who will be responsible for the whole life of the application, but an issue if you use other people to maintain.

• Python's typical applications can be regarded as being very wide ranging. We have trained user on all sort of applications, some (but a minority) of which are web based. Ruby is, to date, very much used in "Ruby on Rails" - a Web framework - so it tends to be very much a language that's associated with web content applications.

Which would I choose for a new project? Given the artificial choice of just these two languages, I would probably go Ruby if I was looking at a web-based content system / shopping cart / on line application, and I would go Python otherwise. But with existing code in either language, or a support team who knew one language but not the other, I would be very comfortable with either language for either type of application.

Oh - and I would be happy to run a Ruby Course or a Python Course for you!
(written 2007-10-02 20:03:23)

 
Associated topics are indexed under
R101 - Ruby - Introduction
R202 - Ruby on Rails
Y101 - Introduction to Python

Back to
Maidenhead Coffee Challenge
Previous and next
or
Horse's mouth home
Forward to
Choosing between mod_proxy and mod_rewrite
Some other Articles
Simple page password protection - PHP
Etag in http headers - what is it?
Load Balancing with Apache mod_jk (httpd/Tomcat)
Choosing between mod_proxy and mod_rewrite
Python v Ruby
Maidenhead Coffee Challenge
New Month, New Quarter, New Laws
A taster PHP expression ...
Hotel in Melksham at Christmas
Apache Tomcat Performance Tuning
2259 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

© WELL HOUSE CONSULTANTS LTD., 2009: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho