Jump to ratings and reviews
Rate this book

Ruby Cookbook: Recipes for Object-Oriented Scripting

Rate this book
Why spend time on coding problems that others have already solved when you could be making real progress on your Ruby project? This updated cookbook provides more than 350 recipes for solving common problems, on topics ranging from basic data structures, classes, and objects, to web development, distributed programming, and multithreading.Revised for Ruby 2.1, each recipe includes a discussion on why and how the solution works. You'll find recipes suitable for all skill levels, from Ruby newbies to experts who need an occasional reference. With Ruby Cookbook, you'll not only save time, but keep your brain percolating with new ideas as well.Recipes structures including strings, numbers, date and time, arrays, hashes, files and directoriesUsing Ruby's code blocks, also known as closuresOOP features such as classes, methods, objects, and modulesXML and HTML, databases and persistence, and graphics and other formatsWeb development with Rails and SinatraInternet services, web services, and distributed programmingSoftware testing, debugging, packaging, and distributingMultitasking, multithreading, and extending Ruby with other languages

992 pages, ebook

First published January 1, 2001

25 people are currently reading
168 people want to read

About the author

Lucas Carlson

14 books161 followers
Lucas Carlson is a bestselling novelist. He takes his first-hand experiences as an entrepreneur and computer programmer, and turns them into thrillers that pack a punch and are hard to put down.

His writing has often been compared to Michael Crichton, Joseph Finder, Harlan Coben and Blake Crouch. They deal with technology and business themes and how they affect society.

Carlson lives in San Diego with his family.

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
57 (29%)
4 stars
72 (36%)
3 stars
52 (26%)
2 stars
12 (6%)
1 star
2 (1%)
Displaying 1 - 6 of 6 reviews
422 reviews84 followers
February 15, 2012
This enormous book provides tons of ready-made Ruby code snippets for common and not-so-common problems. With books this big, I usually suspect the author of wasting words, but not this one. It just covers a ton of stuff, everything I could fathom anyone would want to use the language for, including object-oriented programming, metaprogramming, MIDI, XML, HTML, graphics, databases, persistence, internet services, web development (Ruby on Rails), web services, distributed programming, debugging, testing, optimizing, testing, packaging, automation, multitasking, multithreading, GUI, command line interfaces, C extensions, and system administration. Like I said, EVERYTHING.

Each solution also comes with a thorough discussion, which really helps you understand the solution in-depth. These "recipes" aren't intended to document everything completely, but to give you a good understanding of it, and tell you where to look for more information. They're like mini-tutorials. Plus, this book also provides fun little tricks that aren't necessarily useful, but really interesting. These are like dessert recipes.

The best part is, most everything in this book is well-written and easy to follow. Things I thought I'd already understood, this book helped me understand better, and it really got me a lot more comfortable reading Ruby code. The book is also arranged in a very logical way. I think this is the perfect reference manual, not only for syntax, but also for how to solve problems. And yet, despite its enormous size and excellence as a reference, it's also surprisingly easy to just read cover-to-cover.
Profile Image for Ash Moran.
79 reviews40 followers
January 30, 2010
I've lost count of the number of times I've tried to find an answer to a Ruby problem on the net and found it in here. Great examples on a wide range of topics, from the core language, to the stand library, to common gems. It could do with updating in places, but 80% of if it gold.
Profile Image for John Orman.
685 reviews32 followers
July 13, 2012
A very large O'Reilly book covering many standard Ruby techniques. Many code snippets listed, but no CD/DVD included. The book can be accessed online for a limited time, guess you could cut code segments from there and run them in your test programs. I used the book for my online class in Cloud Computing/Ruby on Rails. Useful in working on a few assignments.
Profile Image for Sunny.
63 reviews2 followers
January 10, 2010
Ruby par l'exemple by Lucas Carlson (2006)
Displaying 1 - 6 of 6 reviews

Can't find what you're looking for?

Get help and learn more about the design.