Feeds

Learning Ruby

Hot on syntax

  • alert
  • submit to reddit

Top 5 reasons to deploy VMware with Tegile

Book review To some, Ruby is going to take over the world. With prominent Java developers and propagandists jumping ship, there has seemed to be no stopping its momentum, particularly in web development.

Part of the reason for the popularity with hackers (in the programming sense of the word), is that it's easy for a programmer in an existing object oriented language (like Java, C# or Python) or a scripting language (such as Perl) to pick it up quickly.

For those new to the language who want to get to grips with it quickly, Michael Fitzgerald's Learning Ruby is an obvious place to look.

For starters it's a short book (238 pages), and it skips explanations of what is a loop or a conditional statement. This is a book that's designed for developers who've already got at least one language in their armory. So, if you're looking to learn Ruby as your first programming language this probably isn't the place to start.

For the rest of us the book opens with some scene-setting introductory stuff that gives a flavor of the language and what it can do. The following chapters look in more detail at various aspects of the syntax: Strings, Math, Arrays, Hashes, Files and so on. The treatment is fairly fast and no nonsense, with short snippets of code to illustrate the point - usually with alternate Ruby idioms to chose from.

However, a by-product of being fast is you avoid much depth.

Classes, meanwhile, aren't introduced until fairly late in the day, which some might consider an odd choice. As with most modern programming languages, Ruby comes with a fairly extensive set of libraries and modules, and some of these are explored in chapter 10. The final chapter is devoted to Rails, and provides a brief introduction and tutorial that examines both the philosophy of Rails and some hands on activity.

The standard introduction to Ruby has always been Programming Ruby (aka the Pickaxe book) by Dave Thomas and Co. Does Learning Ruby match up to the high standard of Pickaxe? The answer is "no" it doesn't, in general. The Pickaxe book is more thorough, has greater depth and probably provides more value in the long term.

JavaScript Disabled

Please Enable JavaScript to use this feature.

In contrast this is a very fast introduction to Ruby syntax that is expressly designed for developers picking up a new language, and so long as that's what you're looking for then this suffices.

Learning Ruby

Verdict: A fast introduction to Ruby syntax, though lacking in some depth.®

Author: Michael Fitzgerald

Publisher: O'Reilly

ISBN: 0596529864

Media: Book

List price: £24.99

Current Reg price: £17.74

Buy this book from Register Books at Reg Developer's special discounted price (subject to change).

Security for virtualized datacentres

More from The Register

next story
New 'Cosmos' browser surfs the net by TXT alone
No data plan? No WiFi? No worries ... except sluggish download speed
iOS 8 release: WebGL now runs everywhere. Hurrah for 3D graphics!
HTML 5's pretty neat ... when your browser supports it
Mathematica hits the Web
Wolfram embraces the cloud, promies private cloud cut of its number-cruncher
Mozilla shutters Labs, tells nobody it's been dead for five months
Staffer's blog reveals all as projects languish on GitHub
'People have forgotten just how late the first iPhone arrived ...'
Plus: 'Google's IDEALISM is an injudicious justification for inappropriate biz practices'
SUSE Linux owner Attachmate gobbled by Micro Focus for $2.3bn
Merger will lead to mainframe and COBOL powerhouse
iOS 8 Healthkit gets a bug SO Apple KILLS it. That's real healthcare!
Not fit for purpose on day of launch, says Cupertino
Netscape plugins about to stop working in Chrome for Mac
Google kills off 32-bit Chrome, only on Mac
prev story

Whitepapers

Secure remote control for conventional and virtual desktops
Balancing user privacy and privileged access, in accordance with compliance frameworks and legislation. Evaluating any potential remote control choice.
Intelligent flash storage arrays
Tegile Intelligent Storage Arrays with IntelliFlash helps IT boost storage utilization and effciency while delivering unmatched storage savings and performance.
WIN a very cool portable ZX Spectrum
Win a one-off portable Spectrum built by legendary hardware hacker Ben Heck
High Performance for All
While HPC is not new, it has traditionally been seen as a specialist area – is it now geared up to meet more mainstream requirements?
Beginner's guide to SSL certificates
De-mystify the technology involved and give you the information you need to make the best decision when considering your online security options.