Ruby Language


- JavaTouch

Ruby Resource Sites

- O'Reilly Ruby Home

Key Features of Ruby

- In Ruby, everything is an object. Every bit of information and code can be given their own properties and actions.

- Ruby is seen as a flexible language, since it allows its users to freely alter its parts. Essential parts of Ruby can be removed or redefined, at will. Existing parts can be added upon.

- Ruby’s block are also seen as a source of great flexibility. A programmer can attach a closure to any method, describing how that method should act.

- Unlike many object-oriented languages, Ruby features single inheritance only, on purpose. But Ruby knows the concept of modules (called Categories in Objective-C). Modules are collections of methods.

- While Ruby often uses very limited punctuation and usually prefers English keywords, some punctuation is used to decorate Ruby. Ruby needs no variable declarations. It uses simple naming conventions to denote the scope of variables.

- Ruby has exception handling features, like Java or Python, to make it easy to handle errors.

- Ruby features a true mark-and-sweep garbage collector for all Ruby objects.

- Writing C extensions in Ruby is easier than in Perl or Python, with a very elegant API for calling Ruby from C. This includes calls for embedding Ruby in software, for use as a scripting language. A SWIG interface is also available.

- Ruby can load extension libraries dynamically if an OS allows.

- Ruby features OS independent threading. Thus, for all platforms on which Ruby runs, you also have multithreading, regardless of if the OS supports it or not, even on MS-DOS!

- Ruby is highly portable: it is developed mostly on GNU/Linux, but works on many types of UNIX, Mac OS X, Windows 95/98/Me/NT/2000/XP, DOS, BeOS, OS/2, etc.

(Ref: About Ruby)







Ruby is a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.
Ruby is a language of careful balance. Its creator, Yukihiro “matz” Matsumoto, blended parts of his favorite languages (Perl, Smalltalk, Eiffel, Ada, and Lisp) to form a new language that balanced functional programming with imperative programming.
He has often said that he is “trying to make Ruby natural, not simple,” in a way that mirrors life.
Much of the growth is attributed to the popularity of software written in Ruby, particularly the Ruby on Rails web framework2.
Ruby is also totally free. Not only free of charge, but also free to use, copy, modify, and distribute.

- Ruby Home 
- About Ruby
- Ruby Libraries Home
- Ruby Documentation Home
- Ruby Community Home
- Recent News on Ruby
- Ruby Official Weblogs Home
- Ruby Documentation Home at Ruby-Doc-Org

Getting Started With Ruby

- Try Ruby in your browser
    Got 15 minutes? Give Ruby a shot right now! No Ruby installation required. A hands on tutorial
- Learn to Program
    A wonderful little tutorial by Chris Pine for programming newbies. If you don’t know how to program, start here.
- Ruby in Twenty Minutes
    A nice tutorial covering the basics of Ruby. From start to finish it shouldn’t take you more than twenty minutes.
- Learning Ruby
    A thorough collection of Ruby study notes for those who are new to the language and in search of a solid introduction to Ruby’s concepts and constructs.
- The Ruby Garden Ruby FAQ
    A collection of frequently asked questions about Ruby. You can even propose a new question be added to the FAQ.
- Things Any Newcomer Should Know
    A page from the Ruby Garden Wiki explaining a few things “any newcomer should know.”
- The Ruby Programming Wikibook
    A free online manual with beginner and intermediate content plus a thorough language reference.
New to Ruby From Other Languages

 What to Expect: Language X to Ruby
    * To Ruby From Java
    * To Ruby From C and C++ 
    * To Ruby From Perl
    * To Ruby From PHP
    * To Ruby From Python


Ruby Manuals (Official)

- Programming Ruby
    The seminal work on Ruby in English, this first edition of the Pragmatic Programmers’ book is available for free online.
- Why’s (Poignant) Guide to Ruby
    A work in progress by Why the Lucky Stiff, filled with talking foxes and chunky bacon, this little book is well on it’s way to becoming a Ruby classic.
- Ruby User’s Guide
    Translated from the original Japanese version written by Yukihiro Matsumoto (the creator of Ruby), this version, by Goto Kentaro and Mark Slagell is nice overview of many aspects of the Ruby language.

Ruby Reference Documentation (Official)

- Ruby Core Reference
    Pulled straight from the source code using RDoc, this reference work documents all of the core classes and modules (like String, Array, Symbol, etc…).
- Ruby Standard Library Reference
    Also pulled from the source code using RDoc, this reference work documents the standard library.
- Ruby C API Reference
    Documentation for Ruby’s underlying C code. Great if you want to write C extensions or contribute to Ruby’s development.


Tutorials and Articals

  - Ruby-Doc-Org
   The Ruby documentation project is an effort by the Ruby community to provide complete and accurate documentation for the Ruby programming language.

- Is Ruby the New VB? (30 Oct 2007, TheServerSide)



Free Books
- Mr. Neighborly's Humble Little Ruby Book
In this book Jeremy McAnally covers the Ruby language including syntax, values, flow control, OOP, and library functionality such as databases, web services, and string manipulation. Download from InfoQ..

- The Little Book Of Ruby


Tech Talks and Interviews

David Black on the Success of Ruby  (Jan 2007, InfoQ)
Noted Ruby community leader and author David Black puts the success of Ruby and the growth of its community in historical perspective, why Matz is an optimal custodian for the language, and the overall success of Ruby and Rails and related conferences. We also discuss David's book Ruby for Rails, and why it's needed at this time by the Rails community.

Codes and Components

 - O'Reilly® Ruby CodeZoo


Forums and Mailing Lists

- Ruby Official Mailing Lists Home
- Ruby-Talk
    This is the most popular mailing-list and deals with general topics about Ruby. Ruby-Talk is mirrored by the the comp.lang.ruby newsgroup and