Product Details
Ruby Cookbook (Cookbooks (O'Reilly))

Ruby Cookbook (Cookbooks (O'Reilly))
By Lucas Carlson, Leonard Richardson

List Price: $49.99
Price: $31.49 & eligible for FREE Super Saver Shipping on orders over $25. Details

Availability: Usually ships in 24 hours
Ships from and sold by Amazon.com

53 new or used available from $11.99

Average customer review:

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.


Product Details

  • Amazon Sales Rank: #46086 in Books
  • Published on: 2006-07-19
  • Format: Illustrated
  • Number of items: 1
  • Binding: Paperback
  • 906 pages

Editorial Reviews

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/.


Customer Reviews

Good Stuff5
Yes you can read online material but it's just not as good. The book really has some great content.

Why not!4
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 "must" but it is a good resource for many of us.

Another great Cookbook from O'Reilly4
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, presented as the solutions to a series of themed tasks and problems the working programmer might face.

Coverage of the likes of XML, databases, networking, web services is all present as you'd expect, but I always enjoy the exploration of the core language the most, especially as it applies to strings, arrays and hashes, where the idioms and 'zen' of programming in a language are normally revealed. Ruby Cookbook excels in this area, but it also provides a very solid grounding in Ruby's object system, namespaces/modules and blocks. The basics of Ruby's metaprogramming and reflective abilities are also well enumerated, although the recipe-like structure of the book doesn't quite communicate the 'magic' behaviour that pervasive Ruby metaprogramming (exemplified by Rails, of course) conjures.

If you've read Perl Cookbook, rest assured that the Ruby version is easily as good, although as you might expect, in the latter half of the book there's less emphasis in Ruby Cookbook on low level networking and sysadmin work and more on higher level libraries. That said, the chapter on Rails felt a bit superfluous.

This book is well-written and thorough, and would be a great second Ruby book (The Pickaxe being the obvious example for a first book). It has some interesting things to say about performance for some of the techniques it describes, although given how many different Ruby runtimes there are and how quickly they're progressing, it's difficult to say how relevant these will stay. Some of the examples are even quite amusing. Unless you were hoping for some truly in-depth metaprogramming detail, you'd be hard pressed to find anything wrong with Ruby Cookbook, except for the fact that it's competing with established Ruby must-read The Ruby Way, which covers very similar ground, in a very similar style. You don't need both books, and I preferred The Ruby Way. Nonetheless, this stands on its own as a great Ruby book.