View stunning SlideShares in full-screen with the new iOS app!Introducing SlideShare for AndroidExplore all your favorite topics in the SlideShare appGet the SlideShare app to Save for Later — even offline
View stunning SlideShares in full-screen with the new Android app!View stunning SlideShares in full-screen with the new iOS app!
Ruby is a reflective (has the ability to observer and modify its own behaviour), dynamic (compile and runtime together), object-oriented programming language. It combines syntax inspired by Perl with Smalltalk-like object-oriented features, and also shares some features with Python, Lisp, Dylan, and CLU. Ruby is a single-pass interpreted language. Its official implementation is free software written in C. (Wikipedia)
This is the genealogy of the programming language Perl :
Perl is a child of awk , sh , C , csh , Pascal and Basic . Perl was first known as Perl 1.000 in year 1987 . It became Perl 2.000 in year 1988 . It became Perl 3.000 in year 1989 . It became Perl 4.000 in year 1991 . Then it begat Ruby in year 1993 . It became Perl 5.000 in year 1994 . Then it begat PHP in year 1995 . It became Perl 5.005_50 in year 1998 . It became Perl 5.6.0 in year 2000 . It became Perl 5.8.0 in year 2002 , and has not changed much since that time.
This is the genealogy of the programming language Java :
Java is a child of C++ and Smalltalk . Java was born in year 1991 . Then it begat NetRexx in year 1991 . It became Java 1 in year 1995 . It became Java 2 (v1.2) in year 1998 . Then it begat C# in year 2000 . It became Java 2 (v1.3) in year 2000 , and has not changed much since that time.
This is the genealogy of the programming language Python :
Python is a child of ABC , Modula 3 and C . Python was first known as Python in year 1991 . Then it begat Ruby in year 1993 . It became Python 1.5.2 in year 1999 . It became Python 1.6 in year 2000 . It became Python 2.0 in year 2000 . It became Python 2.1 in year 2001 . It became Python 2.2 in year 2001 . It became Python 2.3 in year 2003 .
Ruby is a child of Python , Smalltalk , Eiffel and Perl . Ruby was born in year 1993 . It became Ruby 0.95 in year 1995 . It became Ruby 1.1 alpha 0 in year 1997 . It became Ruby 1.3.2 in year 1999 . It became Ruby 1.6.1 in year 2000 , and has not changed much since that time.
Ruby and Rails success’s have prompted others to create similar languages such as “Groovy on Grails” a Java like scripting environment, which doesn’t seem to have had much success. In addition another version of Ruby has been written purely in Java which has access to all of java’s native classes via an extension of the ruby language, i.e access to JDBC. This is variant is called jruby. A similar project has also started at Q.U.T. to write Ruby using Microsofts “.net” framework.
Ruby is said to follow the principle of least surprise (POLS), meaning that the language behaves in such a way as to minimize confusion for experienced users.
Ruby is designed for programmer productivity and fun . The emphasis of ruby’s design is towards the convenience of the programmer rather than optimizing the computer performance.
Within the ruby community the objective of the programmers is towards.
Convention over configuration, there is a conventional way of doing most things, i.e. MVC from rails. But there are also ways of overriding the conventions through alternate configuration. ActiveRecord uses pluralization rules, to associate class names with database tables.
Ruby packages are generally distributed as gem files, i.e “activerecord-1.14.4.gem” except for “rubygems” which is the package management tool. “rubygems” can be installed using the following commands.