
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
Learning Ruby: The Language that Powers Rails 1st Edition
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.
- ISBN-100596529864
- ISBN-13978-0596529864
- Edition1st
- PublisherO'Reilly Media
- Publication dateJune 19, 2007
- LanguageEnglish
- Dimensions7 x 0.62 x 9.19 inches
- Print length255 pages
Customers who viewed this item also viewed
From the brand

-
Sharing the knowledge of experts
O'Reilly's mission is to change the world by sharing the knowledge of innovators. For over 40 years, we've inspired companies and individuals to do new things (and do them better) by providing the skills and understanding that are necessary for success.
Our customers are hungry to build the innovations that propel the world forward. And we help them do just that.
-
Your partner in learning
-
Bestsellers
-
Software Development
-
Programming Languages
-
AI / Machine Learning
-
Data Science
-
Data, Databases and more
-
Cloud Services
-
Business
-
Finance
-
Blockchain / Cryptocurrency
-
Security
-
Cookbooks
-
Head First series
-
97 Things series
-
Lean series
Editorial Reviews
About the Author
Product details
- Publisher : O'Reilly Media; 1st edition (June 19, 2007)
- Language : English
- Paperback : 255 pages
- ISBN-10 : 0596529864
- ISBN-13 : 978-0596529864
- Item Weight : 14.6 ounces
- Dimensions : 7 x 0.62 x 9.19 inches
- Best Sellers Rank: #3,841,650 in Books (See Top 100 in Books)
- #131 in Ruby Programming
- #1,296 in Object-Oriented Design
- #4,204 in Software Development (Books)
- Customer Reviews:
About the author

Michael James Fitzgerald is the author and coauthor of over 20 books that have appeared in eight languages. He's also a blogger and has written numerous articles. Mike loves to read, write, and run.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Customers find the book serves as a good introduction to Ruby programming. The writing style receives mixed feedback, with some customers finding it easy to understand while others note it can be elementary in its presentation.
AI-generated from the text of customer reviews
Select to learn more
Customers find this book to be a good introduction to Ruby programming, with one customer noting it teaches all the basics.
"This is a good book, it teaches all the basics that there need to be about ruby...." Read more
"This is an excellent introduction to Ruby." Read more
"...for his language a simple, elegant, balanced syntax that is a pleasure to learn , especially if guided by a good introductory book like this one...." Read more
"Great Ruby intro book..." Read more
Customers have mixed opinions about the writing style of the book, with some finding it easy to understand, while others find it elementary in its presentation.
"This is another well written O'Reilly programming book that I've been recently using to extend my known programming languages beyond C and Java, and..." Read more
"...Coming from a long background in coding, this book was a bit elementary in its presentation...." Read more
"...However, this book is easy to follow and even more easy to understand a lot of the time so that makes up for it sometimes." Read more
"...All the basics are treated clearly and gently enough not to overwhelm the novice. The writing style is lively and engaging without being obnoxious...." Read more
Top reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on July 21, 2014This is another well written O'Reilly programming book that I've been recently using to extend my known programming languages beyond C and Java, and it's well written for people of any amount of programming experience.
- Reviewed in the United States on November 2, 2009This is a good book, it teaches all the basics that there need to be about ruby. one thing I didn't like, although the author cautions about this in the beggining of the book, is that the book assumes you have some knowledge of programing or programing terminology when in reality you may not. there will be a few times where you might have to Google something or look up the definition of a few things. This may happen rarely or slightly more depending on your skill level with programing. However, this book is easy to follow and even more easy to understand a lot of the time so that makes up for it sometimes.
- Reviewed in the United States on May 30, 2012I have a long history with programming languages, going back to 1971, but almost all my coding experience has been with the old procedural paradigm. Other than a little Objective Perl I've never really gotten into the new paradigm. I was looking for a good way to add some dynamic content to a few of my web pages, and Ruby, along with Rails, looked to be a good place to start .
Coming from a long background in coding, this book was a bit elementary in its presentation. But having almost no experience in a modern object-oriented language, this turned out to be a good thing. Working with objects, message handling and so forth is a new way of thinking, and I really did need a little hand holding to get a feel for Ruby.
If you've got a fair amount of experience with Java, Objective C, etc. this is probably not the book for you. But if you're new to programming, or, like me, new to the object-oriented paradigm, this is a good place to start.
- Reviewed in the United States on October 3, 2015This is an excellent introduction to Ruby.
- Reviewed in the United States on August 28, 2007When 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.
- Reviewed in the United States on February 9, 2012If you are looking for a beginners book, do not buy this one. It does not teach you any reasoning. It's not even close to the quality of Learning Perl. However, if you are trying to move into Ruby, this book provides you a fast start.
- Reviewed in the United States on September 12, 2007Learning 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. The most noteworthy feature of the entire book is in the colophon detailing the sexual habits of the giraffe; you'll just have to get the book to find out what I'm alluding to.
For the most part, the book could easily have been condensed to no more than 10 pages of lists of elements of the Ruby lexicon. The seasoned developer will be extremely frustrated after having invested time and money with very little to show for his/her expenditure. For the novice, general confusion is the best that can be expected.
I am just climbing the Ruby learning curve and cannot make a recommendation as to a better text for a Ruby neophyte; what I can say is `Learning Ruby' is definitely NOT the text. Save your money and look elsewhere.
- Reviewed in the United States on January 30, 2015The book came in almost excellent condition. Very satisfied.
Top reviews from other countries
- jhoomsharabiReviewed in India on December 18, 2015
3.0 out of 5 stars OK book
Its OK book, does not looks to me written for beginners Author giving unnecessary emphasis to things which should not be given. I am looking for more online training than relying on books now