CSC/ECE 517 Fall 2009/wiki1a 11 AS: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 39: | Line 39: | ||
== Projects better suited for Ruby | == Projects better suited for Ruby == |
Revision as of 00:48, 5 September 2009
Ruby vs Python
Definition of Ruby and Python
Ruby is a dynamic, reflective, general purpose object-oriented programming language that combines syntax inspired by Perl with Smalltalk-like features.
Python is an interpreted, object-oriented, high-level programming language with dynamic semantics.
Differences in their language features
The first thing to be noted in Ruby is that in Ruby everything is an object, whereas in Python you have the liberty to code without using objects.
// include example here
In ruby, the programmer can use blocks to extend the language for application specific control statements where as in Python you are supposed to use only the control statements provided by the language.