Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.
Learning Ruby and over 300,000 other books are available for Amazon Kindle – Amazon’s new wireless reading device. Learn more

 

or
Sign in to turn on 1-Click ordering.
 
 
More Buying Choices
52 used & new from $1.96

Have one to sell? Sell yours here
 
   
Learning Ruby
 
 
Start reading Learning Ruby on your Kindle in under a minute.

Don’t have a Kindle? Get yours here.
 
  
3.7 out of 5 stars See all reviews (18 customer reviews)

List Price: $34.99
Price: $23.09 & eligible for FREE Super Saver Shipping on orders over $25. Details
You Save: $11.90 (34%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Only 2 left in stock--order soon (more on the way).

Want it delivered Tuesday, July 21? Choose One-Day Shipping at checkout. Details
29 new from $16.17 23 used from $1.96
Also Available in: List Price: Our Price: Other Offers:
Kindle Edition (Kindle Book) $15.39
Like this book? Find similar titles from O'Reilly and Partners in our O'Reilly Bookstore.

Best Value

Buy Wicked Cool Ruby Scripts: Useful Scripts that Solve Difficult Problems and get Learning Ruby at an additional 5% off Amazon.com's everyday low price.

Wicked Cool Ruby Scripts: Useful Scripts that Solve Difficult Problems + Learning Ruby
Buy Together Today: $44.70

Show availability and shipping details


Customers Who Bought This Item Also Bought

Ruby on Rails: Up and Running

Ruby on Rails: Up and Running

by Bruce Tate
3.3 out of 5 stars (28)  $19.79
The Ruby Programming Language

The Ruby Programming Language

by David Flanagan
5.0 out of 5 stars (25)  $26.39
Ruby Cookbook (Cookbooks (O'Reilly))

Ruby Cookbook (Cookbooks (O'Reilly))

by Lucas Carlson
4.7 out of 5 stars (30)  $31.49
Rails Cookbook (Cookbooks (O'Reilly))

Rails Cookbook (Cookbooks (O'Reilly))

by Rob Orsini
Programming Ruby 1.9: The Pragmatic Programmers' Guide (Facets of Ruby)

Programming Ruby 1.9: The Pragmatic Programmers' Guide (Facets of Ruby)

by Dave Thomas
4.4 out of 5 stars (62)  $32.97
Explore similar items

Editorial Reviews

Product Description
You don't have to know everything about a car to drive one, and you don't need to know everything about Ruby to start programming with it. Written for both experienced and new programmers alike, Learning Ruby is a just-get-in-and-drive book -- a hands-on tutorial that offers lots of Ruby programs and lets you know how and why they work, just enough to get you rolling down the road.

Interest in Ruby stems from the popularity of Rails, the web development framework that's attracting new devotees and refugees from Java and PHP. But there are plenty of other uses for this versatile language. The best way to learn is to just try the code! You'll find examples on nearly every page of this book that you can imitate and hack. Briefly, this book:
  • Outlines many of the most important features of Ruby
  • Demonstrates how to use conditionals, and how to manipulate strings in Ruby. Includes a section on regular expressions
  • Describes how to use operators, basic math, functions from the Math module, rational numbers, etc.
  • Talks you through Ruby arrays, and demonstrates hashes in detail
  • Explains how to process files with Ruby
  • Discusses Ruby classes and modules (mixins) in detail, including a brief introduction to object-oriented programming (OOP)
  • Introduces processing XML, the Tk toolkit, RubyGems, reflection, RDoc, embedded Ruby, metaprogramming, exception handling, and other topics
  • Acquaints you with some of the essentials of Rails, and includes a short Rails tutorial.
Each chapter concludes with a set of review questions, and appendices provide you with a glossary of terms related to Ruby programming, plus reference material from the book in one convenient location. If you want to take Ruby out for a drive, Learning Ruby holds the keys.

About the Author
Michael Fitzgerald describes Ruby as "my favorite language so far" and is working regularly with Ruby and the Rails framework. He has written over 150 Ruby programs for testing and demonstration, and has been developing a library of sample Ruby code. He is the author of Learning XSLT and XML Hacks, and co-author on the XML Pocket Reference.

Product Details

  • Paperback: 275 pages
  • Publisher: O'Reilly Media, Inc.; illustrated edition edition (May 14, 2007)
  • Language: English
  • ISBN-10: 0596529864
  • ISBN-13: 978-0596529864
  • Product Dimensions: 9 x 7 x 0.7 inches
  • Shipping Weight: 12.8 ounces (View shipping rates and policies)
  • Average Customer Review: 3.7 out of 5 stars See all reviews (18 customer reviews)
  • Amazon.com Sales Rank: #274,739 in Books (See Bestsellers in Books)

Inside This Book (learn more)


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.
(15)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

 

Customer Reviews

18 Reviews
5 star:
 (7)
4 star:
 (6)
3 star:    (0)
2 star:
 (3)
1 star:
 (2)
 
 
 
 
 
Average Customer Review
3.7 out of 5 stars (18 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
21 of 23 people found the following review helpful:
2.0 out of 5 stars Learning Nothing, August 28, 2007
By Michael Burton (Columbus, OH USA) - See all my reviews
(REAL NAME)   
When I read a computer book titled "Learning (Something)" and I don't learn anything, I have to ask myself: is the fault in the book, or in myself? This time, I believe, it's the book.

O'Reilly has an excellent reputation as a publisher of technical books. The table of contents suggests a carefully organized survey of language features, but the actual discussion is flighty and shallow. The author is clearly a Ruby enthusiast. It seems as if he wanted to mention everything, but didn't have time to EXPLAIN anything. In short order, he shows us eval, methods, blocks, and procs, but in the sample code, they all just print "Hello, Matz!" There is no discussion of when or why one technique might be preferable to another.

The book is full of sample code that illustrates syntax without even slightly illuminating the reasoning behind it. To illustrate logical AND:

if a == 10 && b == 27 && c == 43 && d == -14
print sum = a + b + c + d
end

Later the same tests are shown separated with "||" for logical OR. Beginning programmers might wonder, "Why in the world would I want to do THAT?" Better sample code would use scenarios where the specified actions make obvious logical sense. Experienced programmers won't have trouble with AND and OR, but the same unhelpful style of sample code illustrates unique Ruby features and more complex topics, too. (Maybe it's not a problem if you already know all this stuff.)

Each chapter ends with several review questions. Here are a couple from the first chapter: "What is the nickname of the inventor of Ruby?" and "Who wrote the pickaxe book?" To be fair, in later chapters some of the answers might be the name of an object method or a math constant. But all the questions test the reader's ability to repeat something from the chapter, never his real understanding.

Oh, maybe I'm too harsh, saying I didn't learn ANYTHING from this book. The nickname of the inventor of Ruby? Matz.
Comment Comment (1) | Permalink | Was this review helpful to you? Yes No (Report this)



 
10 of 11 people found the following review helpful:
4.0 out of 5 stars A good book on the basics of Ruby, June 1, 2007
By calvinnme "Texan refugee" (Fredericksburg, Va) - See all my reviews
(TOP 10 REVIEWER)      
This is a good book for someone who is planning to teach a beginners class in Ruby to others or has never seen Ruby before at all and wants to learn it themself from scratch. It does a good job on the basics, has plenty of examples, and even has review questions at the end of each chapter with answers at the back of the book. As far as learning anything past the basics of the language, including Rails and some of the more interesting things that can be done with Ruby, there are two short chapters that cover this information but do not go enough into the details. Once you read this book I suggest "Programming Ruby: The Pragmatic Programmers' Guide". That book goes into more detail as to what can be done with Ruby, but it also assumes you are not a beginner, which you won't be once you read this book. The table of contents is as follows:

1. Ruby Basics
Hello, Matz; Interactive Ruby; Resources; Installing Ruby; Permission Denied; Associating File Types on Windows; Review Questions;

2. A Quick Tour of Ruby
Ruby Is Object-Oriented; Ruby's Reserved Words; Comments; Variables; Strings; Numbers and Operators; Conditional

Statements; Arrays and Hashes; Methods; Blocks; Symbols; Exception Handling; Ruby Documentation; Review Questions;

3. Conditional Love
The if Statement; The case Statement; The while Loop; The loop Method; The for loop; Execution Before or After a Program; Review Questions;

4. Strings
Creating Strings; Concatenating Strings; Accessing Strings; Comparing Strings; Manipulating Strings; Case Conversion; Managing Whitespace, etc; Incrementing Strings; Converting Strings; Regular Expressions; 1.9 and Beyond ;Review Questions;

5. Math
Class Hierarchy and Included Modules; Converting Numbers; Basic Math Operations; Ranges; Inquiring About Numbers; More Math Methods; Math Functions; Rational Numbers; Prime Numbers; Review Questions;

6. Arrays
Creating Arrays; Accessing Elements; Concatenation; Set Operations; Unique Elements; Blow Your Stack; Comparing Arrays; Changing Elements; Deleting Elements; Arrays and Blocks; Sorting Things and About Face; Multidimensional Arrays; 1.9 and Beyond; Other Array Methods; Review Questions;

7. Hashes
Creating Hashes; Accessing Hashes; Iterating over Hashes; Changing Hashes; Converting Hashes to Other Classes; 1.9 and Beyond; Other Hash Methods; Review Questions;

8. Working with Files
Directories; Creating a New File; Opening an Existing File; Deleting and Renaming Files; File Inquiries; Changing File Modes and Owner; The IO Class; Review Questions;

9. Classes
Defining the Class; Instance Variables; Accessors; Class Variables; Class Methods; Inheritance; Modules; public, private, or protected ; Review Questions;

10. More Fun with Ruby
Formatting Output with sprintf; Processing XML; Date and Time; Reflection; Using Tk; Metaprogramming; RubyGems; Exception Handling; Creating Documentation with RDoc; Embedded Ruby; Review Questions;

11. A Short Guide to Ruby on Rails
Where Did Rails Come From?; Why Rails?; What Have Other Folks Done with Rails? Hosting Rails; Installing Rails; Learning Rails; A Brief Tutorial; Review Questions;

A. Ruby Reference
B. Answers to Review Questions
Comment Comments (2) | Permalink | Was this review helpful to you? Yes No (Report this)



 
3 of 3 people found the following review helpful:
5.0 out of 5 stars Excellent Overview, May 16, 2008
This is a great introduction to Ruby. It covers the basics without swamping the fledgling programmer in too much complexity. That's not what newcomers need. They aren't worried about the nooks and crannies of the array class; they're wondering what the heck an array is, and what makes it different from a hash. In that respect, this book strikes a nice balance.

Having read (and bought) most of the O'Reilly books on Ruby, Perl, and Python, I can honestly say that this book ranks high at the top of them--not because it is the definitive work on Ruby (it isn't and isn't supposed to be), but because it covers the core essentials in a way that you can read in an afternoon. For that reason, it is an excellent choice for a first timer in Ruby and/or programming to see why Ruby is a great language worth learning, without having to get a computer science degree first, and without having to hire a Sherpa to help them lug their book around while they read it (I'll refrain from pointing fingers at other books here).

I think that's one thing many of the reviewers missed about this book. "Learning Ruby" is designed for the newcomer who wants to get jump started in Ruby, not for the experienced programming who is just looking for a nutshell summary.

I would also like to add that at one point, I had a question about what was included with the one-click installation system and emailed the author, who very quickly investigated the problem and emailed me back with an answer. You have to admit: that's pretty impressive.

Now, there are areas of the book that should probably be expanded on for the next edition. Primarily, I'm thinking of a chapter devoted to regular expressions a la "Learning Perl", a chapter devoted to IO (this would be brief but handy) including a section on string interpolation and how to use and combine string methods (a very cool aspect of Ruby), and finally an expansion on the chapter involving classes to address a few of the things that some of the other reviewers have already identified as important but missing.

However, those are not fatal by any means, and for the first edition in a relatively new language, this book is well worth the time and money.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
Ad
 
Most Recent Customer Reviews

4.0 out of 5 stars A great introduction
This was my very first introduction in Ruby. After Having seen a friend build a Rails website in a few minutes I was impressed and wanted to know about Ruby. Read more
Published 1 month ago by waveninja

5.0 out of 5 stars Good For Beginners
Learning Ruby is a great book for experts and novices that are looking to learn Ruby. It effectively addresses the needs of people who are learning Ruby as their first programming... Read more
Published 5 months ago by Andrei Mouravski

5.0 out of 5 stars Very good book for what it was done for!
I don't understand why some people complain about this book's simplicity. That's exactly what the book was done for and that's exactly what to author states in the first lines... Read more
Published 16 months ago by Sergio Oliveira

2.0 out of 5 stars Incomplete (rushing), lots of errors, no feedback from the author
This isn't the book that "does one thing but does it extremely good". If the author wants to cut corner (due to the depth of Ruby as a language), he should cut some features not... Read more
Published 18 months ago by E. Nathaniel

4.0 out of 5 stars Learning Ruby but Ruby Newbies Move with Caution
As a book entitled "Learning Ruby", this is a draw for new programmers looking to pick up ruby and the book's smallish size (compared to other ruby works on the market) adds to... Read more
Published 18 months ago by T. Pierce

5.0 out of 5 stars Learning (More) Ruby
The chapters are tightly organized and neatly structured. The author writes clearly and directly. You'll learn a lot. Read more
Published 21 months ago by Brian DeLacey

4.0 out of 5 stars Should be titled: Learning Ruby *Fast*
Michael Fitzgerald directs his book "Learning Ruby" to two audiences:

* "experienced programmers who want to learn Ruby"

For this audience, the book... Read more
Published 21 months ago by Scott Schram

2.0 out of 5 stars not so complete
for some important feature of Ruby, it doesn't even have a complete coverage of it. For example, when it talks about "yield" in an iterator, which is a really important feature... Read more
Published 22 months ago by Epsilon Delta

1.0 out of 5 stars Waste of time (and moola)
If you looking for a nice quick intro like 'Learning Perl' - forget it! The book is clearly mistitled. Should be called 'Ruby beginner hacks'. Read more
Published 22 months ago by DENYS VOROBYOV

1.0 out of 5 stars THIS IN NOT THE BOOK TO LEARN RUBY
Learning Ruby should be high on your `must avoid' list of Ruby texts. This book is a tree-killer and a money-maker for the author and the publisher. Read more
Published 22 months ago by Casey Kemp

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]


Active discussions in related forums
   


Product Information from the Amapedia Community

Beta (What's this?)



Look for Similar Items by Category

Ad

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Free
Free by Chris Anderson
Paranoia
Paranoia by Joseph Finder
The Adventures of Sherlock Holmes
The Adventures of Sherlock Holmes by Arthur Conan, Sir, 1859-1930 Doyle
Glenn Beck's Common Sense

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates