Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.
Ruby Cookbook 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
56 used & new from $6.79

Have one to sell? Sell yours here
 
   
Ruby Cookbook (Cookbooks (O'Reilly))
 
 
Start reading Ruby Cookbook on your Kindle in under a minute.

Don’t have a Kindle? Get yours here.
 
  

Ruby Cookbook (Cookbooks (O'Reilly)) (Paperback)

by Lucas Carlson (Author), Leonard Richardson (Author)
Key Phrases: automating tasks, serializing data, validating data, Web Development, Interface Builder, Internet Services (more...)
4.7 out of 5 stars See all reviews (30 customer reviews)

List Price: $49.99
Price: $31.49 & this item ships for FREE with Super Saver Shipping. Details
You Save: $18.50 (37%)
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.

Want it delivered Friday, July 17? Choose One-Day Shipping at checkout. Details
29 new from $20.00 27 used from $6.79
Also Available in: List Price: Our Price: Other Offers:
Kindle Edition (Kindle Book) $28.34
Like this book? Find similar titles from O'Reilly and Partners in our O'Reilly Bookstore.

Best Value

Buy Ruby Cookbook (Cookbooks (O'Reilly)) and get Everyday Scripting with Ruby: For Teams, Testers, and You at an additional 5% off Amazon.com's everyday low price.

Ruby Cookbook (Cookbooks (O'Reilly)) + Everyday Scripting with Ruby: For Teams, Testers, and You
Buy Together Today: $50.27

Show availability and shipping details


Customers Who Bought This Item Also Bought

The Ruby Programming Language

The Ruby Programming Language

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

Rails Cookbook (Cookbooks (O'Reilly))

by Rob Orsini
4.6 out of 5 stars (14)  $26.39
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
Agile Web Development with Rails, 2nd Edition

Agile Web Development with Rails, 2nd Edition

by Dave Thomas
4.6 out of 5 stars (109)  $35.95
Ajax on Rails

Ajax on Rails

by Scott Raymond
4.2 out of 5 stars (16)  $26.39
Explore similar items

Editorial Reviews

Product Description

Do you want to push Ruby to its limits? The Ruby Cookbook is the most comprehensive problem-solving guide to today's hottest programming language. It gives you hundreds of solutions to real-world problems, with clear explanations and thousands of lines of code you can use in your own projects.

From data structures and algorithms, to integration with cutting-edge technologies, the Ruby Cookbook has something for every programmer. Beginners and advanced Rubyists alike will learn how to program with:

  • Strings and numbers
  • Arrays and hashes
  • Classes, modules, and namespaces
  • Reflection and metaprogramming
  • XML and HTML processing
  • Ruby on Rails (including Ajax integration)
  • Databases
  • Graphics
  • Internet services like email, SSH, and BitTorrent
  • Web services
  • Multitasking
  • Graphical and terminal interfaces

If you need to write a web application, this book shows you how to get started with Rails. If you're a system administrator who needs to rename thousands of files, you'll see how to use Ruby for this and other everyday tasks. You'll learn how to read and write Excel spreadsheets, classify text with Bayesian filters, and create PDF files. We've even included a few silly tricks that were too cool to leave out, like how to blink the lights on your keyboard.

The Ruby Cookbook is the most useful book yet written about Ruby. When you need to solve a problem, don't reinvent the wheel: look it up in the Cookbook.



About the Author
Lucas Carlson is a professional Ruby programmer who specializes in Rails web development. He has authored a half dozen libraries and contributed to many others, including Rails and RedCloth. He lives in Portland, Oregon and maintains a website at http://rufy.com/.

Leonard Richardson has been programming since he was eight years old. Recently, the quality of his code has improved somewhat. He is responsible for libraries in many languages, including Rubyful Soup. A California native, he now works in New York and maintains a website at http://www.crummy.com/.

Product Details

  • Paperback: 906 pages
  • Publisher: O'Reilly Media, Inc.; illustrated edition edition (July 19, 2006)
  • Language: English
  • ISBN-10: 0596523696
  • ISBN-13: 978-0596523695
  • Product Dimensions: 9.1 x 7 x 1.7 inches
  • Shipping Weight: 2.7 pounds (View shipping rates and policies)
  • Average Customer Review: 4.7 out of 5 stars See all reviews (30 customer reviews)
  • Amazon.com Sales Rank: #68,983 in Books (See Bestsellers in Books)

    Popular in this category: (What's this?)

    #75 in  Books > Computers & Internet > Databases > Database Design

Inside This Book (learn more)

What Do Customers Ultimately Buy After Viewing This Item?


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.
(25)
(10)
(2)

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

30 Reviews
5 star:
 (20)
4 star:
 (10)
3 star:    (0)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.7 out of 5 stars (30 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
38 of 41 people found the following review helpful:
4.0 out of 5 stars An essential cookbook, August 28, 2006
By A Williams "honestpuck" (Neutral Bay, NSW Australia) - See all my reviews
(REAL NAME)      
I have a confession to make. Over more than twenty years as a programmer I'd never really had my head around object-oriented programming. I started out using C and then tried PHP and Perl and treated both as purely procedural languages (indeed, one Perl guru looked at my code and said "you were a C programmer weren't you"; humbling). Java, JavaScript, C++ and even Objective C had their turn at getting me to convert but none took (though I do code JavaScript under sufferance) until Ruby. A few month ago I started using Rails and became hooked on it and the underlying language. My Rails and Ruby skills have progressed in leaps and bounds. I've already had a good read of "Programming Ruby" and "Agile Web Development with Rails" and enjoyed and learnt from both.

I also have to admit to loving the O'Reilly "Cookbook" series. Several, particularly the "Perl Cookbook", have pride of place on the bookshelf closest to my computer. So the "Ruby Cookbook" by Lucas Carlson and Leonard Richardson was eagerly awaited. The "Cookbook" series are designed to provide you with a plethora of code examples to guide you in writing your own code. I'm definitely a hands-on style of learner and the Cookbook series suits my style - I can start getting my hands dirty with complex problems knowing I have help to code my way of out of the tight spots. This one covers a wide range of tasks from simple, such as walking a directory tree or manipulating text and numbers, through to more complex such as working with AJAX in Ruby on Rails. If you have't previously come across a book in this style then each chapter is broken up into a number of 'recipes' with a problem, a solution and then discussion of the solution.

This sort of book lives and dies by two criteria - the quality of the code and the usefulness of the recipe selection. "Ruby Cookbook" wins on both. The topics covered are wide and leave little, if any, part of the language unexplained. They start with data and structures such as strings and hashes before moving on to code blocks, objects, classes and modules. There is then an intriguing chapter on reflection and metaprogramming that I am still puzzling through before the book moves on to more internet based topics such as XML, HTML, web and internet services and, of course, Rails. The book then proceeds with chapters on the necessary housekeeping of development such as testing, packaging and automating tasks with Rake before finishing with extending Ruby with other languages and system administration tasks. The code is well written; clear and well commented, easily understandable by a virtual newb like me. The discussion is fairly clear, seemingly concise while allowing you to understand the code and how it might be changed for particular purposes.

I'm not going to go into more details as to the contents but instead point you to the <a href="http://www.oreilly.com/catalog/rubyckbk/index.html">book's page at O'Reilly</a> which includes a link to the contents, listnig all the recipes in the book, and two example chapters; Chapter 7 on code blocks and iteration and Chapter 15 devoted to Rails. Together they will give you a good feel for the style and contents of the book.

The book is well written and well edited. I've already tried over a dozen of the recipes and haven't found a single code error, so my faith in the other 300 or so has risen considerably. The discussion that accompanies each recipe is a marvelous way of learning just that little bit more about the language. I found them quite good, though the odd one could do with further explanation if the book is to stand on its own - for example the discussion accompanying the recipe to iterate over a hash was not perfectly clear on the difference between Hash#each and Hash#each_pair.

At more than 800 pages this is a large and extensive volume, though the price may make you wince. Usually programming books this large have at least part of their size dedicated to something I refer to as pseudo-padding, some sort of reference or simple language explanation - this one has neither, all of it is devoted to the recipes.

With Ruby use, thanks in no part to the popularity of Rails, growing by leaps and bounds I'm sure this volume will be a well deserved bestseller. I give it four stars and recommend it to all but the most expert Ruby programmers. For beginners who, like me, appreciate hands on learning it is a must.
Comment Comment (1) | Permalink | Was this review helpful to you? Yes No (Report this)



 
13 of 14 people found the following review helpful:
5.0 out of 5 stars A definite keeper, September 1, 2006
By orangekay (San Francisco, CA United States) - See all my reviews
  
Some O'Reilly books are horrible, and some are great--this happens to be one of the better ones. It's full of concise examples of how to use Ruby's standard libraries and most popular extensions that more than make up for their frequently terrible and always unnavigable RubyDoc generated documentation. An excellent next step for those who've read through "Programming Ruby" and are wondering how to put the language's better features to good use without becoming completely dependent on any of the currently popular application frameworks I'd guess about 90% of people are learning Ruby for. It even covers RubyCocoa basics.

I have found a couple typos here and there, but mostly just misplaced spaces and omitted words; nothing dangerous so far.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
6 of 6 people found the following review helpful:
4.0 out of 5 stars Useful - keep it by your side, August 11, 2006
Ok. Let's pretend you're a Java programmer, and you want to know what's the story about this Ruby language you've heard so much about. Or maybe, like me, you're a Smug Smalltalk Weenie and you want to check how the young cousin from the East is doing. Either way, you got your hands on a manual or on a tutorial, and now you're reasonably sure you have a good grasp of the language. But you still have to learn the slang, and _that_ is the difficult part.

But don't worry, here comes the Ruby Cookbook to the rescue. The book is a full, 850-pages behemoth full of Ruby tips and tricks, from string manipulation to database management, from reflection to multitasking.
Presenting their tips in the usual O'Reilly cookbook format (problem/solution/discussion), the two authors cover almost all the topics of interest for both the beginner and the expert Ruby programmer.

All in all, the Ruby Cookbook is like a dictionary that you should keep by your side when you're programming in Ruby. The only small con is the high number of typos, especially in the first part: nothing which stops you from understanding what the authors are saying, but finding a typo in almost every page of a chapter gets tiresome after a while.
Anyway, you can't go wrong by buying this book.
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 Bulky but efficient
I bought this book on a shopping spree. Just needed a 3rd book to add to my shopping basket for a '3 = 2' promotion, it had good reviews so I bought it. Read more
Published 1 month ago by waveninja

5.0 out of 5 stars Wonderful Cookbook
Published by acclaimed authors Lucas Carlson and Leonard Richardson, The Ruby Cookbook is an excellent learning tool and reference manual. Read more
Published 5 months ago by Andrei Mouravski

5.0 out of 5 stars Good Stuff
Yes you can read online material but it's just not as good. The book really has some great content.
Published 13 months ago by Fernando Barajas

4.0 out of 5 stars Why not!
Not a simple cookbook (o'reilly is cool). A lot of usefull informations and several lines about the differences with some other languages (python, java)

Is not a... Read more
Published 17 months ago by M. Veltri

4.0 out of 5 stars Another great Cookbook from O'Reilly
As with most O'Reilly cookbooks, Ruby Cookbook has two main avenues of exploration: the core of the language, and an introduction to some of the more important libraries,... Read more
Published 17 months ago by Thing with a hook

4.0 out of 5 stars This One's Just Right
Great stuff. I suggest this book for a first look at Ruby over and above Programming Ruby and Agile Web Development. Read more
Published 18 months ago by Scott Bellware

5.0 out of 5 stars full explanations, thorough examples, good reference
i found ruby cookbook is a good read for learning ruby, provides good thorough explanations of the topics, and gives great examples as well. Read more
Published 21 months ago by bloot

5.0 out of 5 stars Eminently Browsable
A practical Ruby book with concrete examples. This is not an introduction to Ruby, but it is accessible to someone who has learned the basics. Read more
Published 24 months ago by Bret Pettichord

4.0 out of 5 stars Great Reference
I've had both good and bad experiences with O'Rielly books, but this one is absolutely good. It works as a great reference book for me. Read more
Published 24 months ago by M. Noga

5.0 out of 5 stars For impatient types
As others already said, this book is all about immediate, hands-on learning experience with some real, live and working code, delivered by *you* quickly. Read more
Published on July 15, 2007 by E. Kontsevoy

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 (1 discussion)
  Discussion Replies Latest Post
when will this book released? 3 July 2006
See all discussions...  
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]


   


Product Information from the Amapedia Community

Beta (What's this?)

Help us improve this fledgling article by editing it on Amapedia.com opens new browser window


Listmania!

Create a Listmania! list


Look for Similar Items by Category


$10 Instant Savings

Beauty Blender
Get a $10 instant rebate with orders of $100 or more on beauty products sold by Amazon.com. See details. Promo code: IOBeauty.

Shop all eligible items now

 

Best Books of 2008

Best of 2008
Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
 

Dive into Summer Reading

Summer Reading for Kids and Teens
Don't even think about hitting the beach without browsing the books in our Summer Reading Store. Discover bestsellers, paperback picks, beach reads, and more terrific titles all summer long.
 

Best Books

Best of the Month
See our editors' picks and more of the best new books on our Best of the Month page.
 

 

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
My Soul to Lose
My Soul to Lose by Rachel Vincent
Glenn Beck's Common Sense

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