Ruby

Ruby is an open source, interpreted scripting language for object oriented programming. Interpreted languages are those that can be executed directly from the text file they are stored and do not require compilation. Ruby, which has some of the features of Eiffel, Ada, Perl, Lisp and smalltalk, was created by Yukihiro “matz” Matsumoto. The official release of the language was in 1995.

Ruby is free software that can be downloaded from http://www.ruby-lang.org/en/downloads/. Ruby is portable and is available for various operating systems that include Windows, Linux, UNIX, Macintosh etc.

Language features

  • The syntaxes in Ruby are uncomplicated.
  • Contains object oriented features like exception handling (like Java or Python), operator and method overloading etc.
  • Variables in Ruby can contain any type of data. The datatype is checked at the time of execution. The scope of the variable is indicated by the name of the variable.
  • Local variables are written in lower case letters. It may also contain underscore (_). For example, "name".
  • Global variables are written with a dollar ($) sign. For example, "$name".
  • Instance variables are written with "@" sign. For example, "@name".
  • Class variables are written with "@@" symbol. For example, "@@name".
  • Constant or Class Name are written with the first letter in capital. For example, "Name".
  • Memory is automatically managed in Ruby. An object which is not referred anywhere in the program is automatically cleaned up by the interpreter via the garage collector.
  • Ruby contains a mark and sweep garbage collector that works with all Ruby objects. The mark and sweep garbage collection is a two phase collection process:
    • In the mark phase the collector scans and marks the objects and references.
    • In the sweep phase it deletes the objects that are inaccessible.
  • It is not required to maintain reference counts in extension libraries.
  • Ruby supports single inheritance (this used only on purpose), polymorphism and multi-threading.
  • Ruby supports the concept of modules.

Categories

Rails

· Tutorials and help 

Tutorials and help

Tools

 
Sponsored results

Links
  • RubyCentral
    Ruby resource: One-click Windows installer; online copy of Programming Ruby: The Pragmatic Programmer's Guide. [Open Publication License]
    http://www.rubycentral.com/
  • RubyGarden
    Was site for tracking developments: forum; news, had Ruby News Weekly (like Dr. Dobb's Python-URL); announcements, future shock, biggest Ruby Wiki, useful surveys, links, people, libraries, ports; threads, announcements from ruby-talk mailing list, a.k.a. comp.lang.ruby.
    http://www.rubygarden.org/
  • Ruby User Groups
    Ruby Garden Wiki pages for many RUGs, in many nations, on most continents.
    http://www.rubygarden.org/ruby?RubyUserGroups
  • Ruby Programming Language
    Growing article, with links to many related topics. [Wikipedia]
    http://en.wikipedia.org/wiki/Ruby_programming_language
  • Ruby Code & Style
    Peer reviewed online journal: articles, news, Weblogs, buzz, chapters, forums. Artima Software.
    http://www.artima.com/rubycs
  • Ruby Matters
    Forum on Ruby language issues, at WordPress.
    http://www.rubymatters.com/
  • RubyRing
    WebRing of Ruby sites, some in/with English material.
    http://www.webring.ne.jp/cgi-bin/webring?ring=ruby;list
  • ruby-talk
    Ruby mail list log/archive, powered by Shin-ichiro Hara's Ruby smart archiver.
    http://blade.nagaokaut.ac.jp/ruby/ruby-talk/index.shtml
  • Vista Insight Ruby Directory
    Project goal: to be the definitive guide for Ruby programming language and Rails framework; many categories.
    http://ruby.vistainsight.com/
  • Wiki: Ruby Garden Wiki
    For discussing Ruby language and developing code.
    http://www.rubygarden.com/ruby/
  • Top: Computers: Programming: Languages: Ruby
    Description, on Open Site online Open Encyclopedia Project.
    http://open-site.org/Computers/Programming/Languages/Ruby/
  • Sydney Ruby Users Group
    RubyGarden Wiki Page for Sydney's RUG
    http://www.rubygarden.org/ruby?SydneyGroup
  • rubyXML
    Known as : news, articles, and links on XML development with the Ruby scripting language.
    http://www.rubyxml.com/
  • Ruby Central, Inc.
    Non-profit organization dedicated to promoting growth of open source Ruby programming language; manages RubyConf, donation clearinghouse, presence and point of contact for corporate sponsors.
    http://rubycentral.org/
  • Ruby: A Language with a Future
    Hal Fulton's Ruby page, small but growing: links, software, and 'Thirty-seven Reasons I Love Ruby'.
    http://rubyhacker.com/
  • Features of Ruby
    By Michael Neumann in English and German.
    http://www.ntecs.de/old-hp/s-direktnet/ruby_en.html
  • An Invitation to Ruby
    Many links, review, comparison to other languages, code samples.
    http://www.math.sci.hokudai.ac.jp/~gotoken/ruby/
  • Cool Ruby
    Filtered Ruby news from everywhere, jobs, Weblogs, RSS. By Berube Consulting.
    http://coolruby.com/
  • Comparing and Introducing Ruby
    Short introduction to features, compares Ruby to Perl, Python. [PDF]
    http://www.nt.ntnu.no/users/haugwarb/Programming/ruby_vs_perl_and_python.pdf
  • Cetus Links: Ruby
    Link page: describes language, links to central site, FAQs, references, newsgroup, mailing lists, books.
    http://www.cetus-links.org/oo_ruby.html
  • nycruby
    Group of Ruby and Rails programmers who live and work in the New York City area. Merger of ruby-nyc and rubyonrails-nyc.
    http://nycruby.org/
  • PLEAC-Ruby
    The Perl Cookbook presents a suite of common programming problems solved in that language. This project aims to gather fans of programming to implement solutions in many other languages. [Open Source]
    http://pleac.sourceforge.net/pleac_ruby/
  • Ruby
    Ruby QuickRef, code snippets. MetaRuby project status. Ruby Language audit: 1.0.1. RubyConf 2002-05 schedules and online presentations. Ruby Cookbook. [The Language Freak]
    http://www.zenspider.com/Languages/Ruby/
  • A Ruby a Day
    Dedicated site. Shows the things author Brian Schröder is doing with Ruby, has a full Ruby course, simple AI game, quiz solutions.
    http://ruby.brian-schroeder.de/
  • RHDL Page
    Ruby Hardware Description Language, implements EHDL in Ruby. Tar file download. [Open Source]
    http://www.aracnet.com/~ptkwt/ruby_stuff/RHDL/
  • Ralph's Ruby Page
    Examples of MS technology being used with open source code. After 10 years with C++, VB, COM and associated MS technologies, Ruby is a lovely breath of fresh air. A few links, software download: Ruby.COM with documentation.
    http://www.geocities.com/masonralph/ruby.html
  • The Pragmatic Programmers, LLC: Programming Ruby
    Their home base: class reference, articles, tips, software downloads, links, and a zippy looking Ruby slide presentation. Book available as downloadable HTML and XML files.
    http://www.pragmaticprogrammer.com/ruby/index.html
  • blade
    Site opens with pretty graphic, and otherwise looks thin, but has huge archives of many Ruby mail groups: ruby-list, ruby-dev, ruby-ext, ruby-math, ruby-talk, fj.comp.lang.ruby, comp.lang.ruby, News, News2, Mailing Lists; linux-users.
    http://blade.nagaokaut.ac.jp/
Articles

 

The Computer Science Directory currently has categories, which include links along with indexed pages.