
Originally Posted by
33degrees
The main difference between Ruby and Python is Ruby's everything-is-an-object approach; it's a pure OO language whose syntax allows it to look like a procedural language. Python is a procedural language with OO added in. IMO, this gives Ruby a big advantage over Python (and an even bigger one over PHP).
Yes, I have read quite a lot about both languages on the Web, and am aware of most of the differences.
However, what you emphasise doesn't seem like like such a crucial advantage -- there is nothing wrong about a language being both object and procedural, it's up to the programmer how it will be used. The fact that a language is OOP-only really doesn't prevent you from writing procedural spaghetti code -- I've seen a whole Java app written as a single procedure inside a single static code block. Don't ask.
The thing that is most on my mind is an apparent disparity between the ability to write code quickly (it's faster to use symbols, as Ruby tends to) and the clear and understandable code (unless you are very experienced in a language, it will be easier to understand verbose commands and keywords. I would like my code both to be written quickly and to be easily reviewed by someone who has extensive programming experience but is not necessarily an expert in the language at hand.
Off Topic:
Actually, if I really had a choice, I'd do all my programming in Javascript. But it's still lacking a good platform -- Whitebeam just doesn't strike me as the way to go...
Bookmarks