CSC/ECE 517 Fall 2009/wiki1a 11 AS: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
Line 32: Line 32:


== What Python has and Ruby does not have? ==
== What Python has and Ruby does not have? ==
== Advantages over statically typed languages ==
== Projects better suited for Ruby and Python ==

Revision as of 00:39, 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.


Differences in Programming Environment

What Ruby has and Python does not have?

What Python has and Ruby does not have?

Advantages over statically typed languages

Projects better suited for Ruby and Python