advertisement
Premier Club Log In/Registration
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   SKILLBUILDING  |   TIP BANK  |   SOURCEBANK  |   FORUMS  |   NEWSLETTERS
Browse DevX
examples.zip
Partners & Affiliates
advertisement
advertisement
Average Rating: 2.9/5 | Rate this item | 8 users have rated this item.
 Print Print
 
Ruby—A Diamond of a Programming Language?
Ruby is an object-oriented, meta-programming language that has many developers wondering if there are actually better alternatives to languages like Java and C#. 

advertisement
ave you heard about Ruby? It seems to be a popular topic in software development circles today. This language came to my attention at a Java conference last spring, where gentlemen like Bruce Tate (author of Bitter Java and Better, Faster, Lighter Java), Dave Thomas (Pragmatic Programmer: From Journeyman to Master), and others were all talking about Ruby and telling many of us in the audience it deserved a look.


Now, if you are like me,you've been developing software for some time and you know that while learning a new programming language can be fun, you've been through enough of them that you probably look a little skeptically at another programming language. After all, the programming language wars in the '80s and '90s culminated in the conclusion that there are essentially two camps: the Java world and the development languages that Microsoft supported on .NET. Its not that I didn't want to learn another language, I just expected that the days of switching programming languages to gain a technological advantage were over. However, given the stature of these gentlemen in the industry, I decided to take a look.

Well, "I've been to the mountain top" so to speak and this article is a report on what I've found regarding Ruby. Bottom line up front, Ruby has some very nice features and is worth your investigation.

Setting Up Ruby
Ruby is an open source programming language developed by Yukihiro "Matz" Matsumoto in Japan in the mid-90s (for more on the history of Ruby, check out this article by its founder. Ruby can be obtained at www.ruby-lang.org. Originally built as a scripting language, it is available for many platforms, including Linux, many flavors of UNIX, MS-DOS, Windows, BeOS, Amiga, Acorn Risc OS, and MacOS X. As of this writing, the latest version of Ruby is 1.8.4. For those using Windows platforms, click here for the "one-click" Windows installer. Along with the base Ruby binaries and libraries, this download comes with several helpful (and free) IDEs and tools, including: documentation and sample code, RubyGems Package Manager, FreeRIDE (Free Ruby IDE), Fox GUI Libraries, fxri (a search engine and GUI guide to Ruby's documentation, along with an interactive command line tool), and SciTE (Scintilla Text Editor IDE). As of this writing, the "stable" version of Ruby offered through the Windows installer is 1.8.2, with a 1.8.4 version in preview form. This article was written using the 1.8.2 version of the Windows installer.

The installation of Ruby using the Windows installer is straightforward. You download and run a simple install executable (ruby182-15.exe for version 1.8.2) that initiates a standard install wizard. The download file is about 15MB and will take up almost 40MB when the wizard completes the install of Ruby on your Windows platform.

For those dedicated to using their favorite editors to program, a number of familiar editors offer Ruby support to include emacs, vim, JEdit, Jed, Nedit, and Textpad. Of course, there is also a Ruby Eclipse project. Ruby Development Tools (RDT) is an Eclipse plug-in that is still early in development but available here. Also emerging on the market are a number of inexpensive Ruby IDEs. Arachno Ruby is one such example.

  Next Page: Running Ruby


Page 1: IntroductionPage 5: Variables, Assignment
Page 2: Running RubyPage 6: Method Arguments
Page 3: Instance Variables and AttributesPage 7: Modules and Mixins vs. Multiple Inheritance
Page 4: Building Applications with Interactive RubyPage 8: A Little Ruby Program
advertisement
Advertising Info  |   Member Services  |   Permissions  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About


JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM eBook: Planning a Service Oriented Architecture
IBM eBook: Choosing the Right Architecture--What It Means for You and Your Business
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Avaya Article: Using Intelligent Presence to Create Smarter Business Applications
Intel Go Parallel Article: Getting Started with TBB on Windows
Microsoft Article: 7.0, Microsoft's Lucky Version?
Avaya Article: How to Feed Data into the Avaya Event Processor
IBM Article: Developing a Software Policy for Your Organization
Microsoft Article: Managing Virtual Machines with Microsoft System Center
Intel Go Parallel Article: Intel Threading Tools and OpenMP
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
HP Video: StorageWorks EVA4400 and Oracle
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Red Gate Download: SQL Toolbelt and free High-Performance SQL Code eBook
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
Silverlight 2 App and Walkthrough: Leverage Silverlight 2 with SQL Server and XML
IBM Article: Enterprise Search--Do You Know What's Out There?
HP Demo: StorageWorks EVA4400
Microsoft Article: The Progress and Promise of Deep Zoom
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES