
This is the new authoritative Ruby book. Buy it, not the Pickaxe.Originally planned as a second edition to Ruby classic, Ruby In A Nutshell, The Ruby Programming Language is a new book by David Flanagan and Yukihiro Matsumoto (a.k.a. Matz - creator of Ruby) and published by O'Reilly. The book covers both Ruby 1.8 and 1.9 and with its esteemed authors and technical approach, is sure to become a new "Bible" for Ruby developers.
As of the start of 2008 this book is REALLY fresh and up to date. Its style is very direct and matter-of-fact; well suited for existing Ruby developers and proficient developers coming from other languages. The examples are clear and logical and the explanations concise; this is a well edited and authoritative book.
The structure of the book is a delight with ten well-defined chapters (with titles such as Reflection and Metaprogramming, Statements and Control Structures, and Expressions and Operators) that each contain a tree of sections. Consider Chapter 4, Expressions and Operators. A sample dive down to section 4.5.5.2 takes us through 4.5, Assignments; 4.5.5, Parallel Assignment; and finally to 4.5.5.2, One lvalue, multiple rvalues. This is a breath of fresh air in a Ruby reference work.
The only downside, in terms of the thousands who might be browsing Amazon looking for a single Ruby book to start off with, is that this book is so well focused on documenting the core elements of the Ruby language, it doesn't work either as a tutorial / beginner's introduction to Ruby, or as an exhaustive reference work (as, on both fronts, the Pickaxe attempts to be.) This lack of dilution may be an ultimate strength, however, since anyone above the station of "beginner" will be able to learn Ruby thoroughly from this book, use it as a general reference, and then be able to use the exhaustive documentation that comes with Ruby itself to cover the standard library and built-in classes.
In conclusion, whether you're an existing developer or a newcomer to Ruby, you need just three things to be up and running with Ruby in the book / documentation department. Forget the Pickaxe and its mediocrity, and buy this, the Ruby Way (by Hal Fulton), and learn how to use the documentation that comes with Ruby.
This book will act as the "Bible" for Ruby, the Ruby Way will make you an expert, and learning how to use the documentation that comes with Ruby will mean you're not using information that's out of date within a couple of years. The perfect combo! It'll last you for years.
A Must-Have For Serious Ruby DevelopersLike the book says in the beginning: "Ruby is not a simple language... and this book is not a simple book. It is intended for experienced programmers... and are willing to read carefully and thoughtfully to achieve this goal."
Ruby is still relatively new, so there are not a ton of books from which to choose. But you gotta figure that one by the creator of the language (Y. Matsumoto) and the author of the popular "Java in a Nutshell" (D. Flanagan) is bound to be good - and it is.
It's a simple, no-nonsense text that will answer just about any question you might have about the Ruby programming language. This and the more-conversational-in-tone "The Ruby Way" by Hal Fulton make for an unbeatable pair.
Perfect For Experienced Ruby Developers'The Ruby Programming Language' is one of 'those' O'Reilly books that become staples in the family of GREAT texts that have come before. At 400+ pages, the following content is discussed:
01. Intro
02. Structure of Ruby Programs
03. Datatypes & Objects
04. Expressions & Operators
05. Statements & Control Structures
06. Methods, Procs, Lambdas, Closures
07. Classes & Modules
08. Reflection & Metaprogramming
09. Ruby Platform
10. Ruby Environment
Logically laid out, wonderful writing, clear and concise examples with a length that is 'just right' (this is so hard to not find bloated books) this is perfect for those that know some Ruby and/or programming in general. If you are new to software development, this book probably is NOT for you as it's not a "learning" text. There are other Ruby books that cover said topic though so make sure to pick those up as well.
Awesome job O'Reilly for this relatively new and fast growing language that is used on the web and wherever you want!!
***** HIGHLY RECOMMENDED
Good book on RubyThe Ruby Programming Language Book is a very good book for understanding the mysteries of Ruby Programming. As the book's back cover states, it is intended for someone that has either had experience with programming or has went through one of the Ruby Introductory Books. It shows side by side the differences between 1.8 and 1.9. It takes various aspects of the language and first explains what it going on. Then it gives you examples to clearify the explaination. It also gives you help with some of the common Ruby Programming Errors. All in all, I would recommend this book to anyone, who is serious about using Ruby.
Great!This book (TRPL) represents a great alternative for those who are not entirely satisfied with the "Pickaxe", as it goes into much more detail in some areas of Ruby. After reading both books, my general impression is that the Pickaxe can be seen as a lighter reference and TRPL as a more in-depth description. In that sense they complement each other. Make no mistake, though: this book is not a comprehensive reference for the standard library (just as "The C programming language" is not a complete reference for the C standard library).
Finally! And worth it!It was with delight that I ordered this book. Finally, it's here! There have been other books... but leave it to O'Reilly to put out one this good. The authors have done a great job. And you gotta love the illustrations!
Very small complaint: I wish there was a bit of a story about the Ruby language in here. I learned more about the birds on the cover than the history of the language!
Kudos: Never once do they mention "chunky bacon" in this book. THANK YOU.
Great introduction to Ruby for experienced programmersI only began learning Ruby in earnest a few weeks ago, and I really appreciate how quickly I can go in depth with this book. I examined many well-known Ruby language offerings at the bookstore, and there really was no comparison in terms of readability and comprehensiveness.
True, the book can be fairly exhaustive in detailing langauge specifics; no doubt this will turn some readers off. The problem with other books is that they often avoid detail at the expense of clarity. For my money, this book makes learning the minutae required for competent programming that much easier, by being so complete and well-organized. There's no need for readers of this book to turn to any sort of "supplementary text," as is so often the case with less well thought-out books.
One caveat: if you are coming to Ruby as a very inexperienced programmer, then this book is probably not the place to start (perhaps try "Beginning Ruby: From Novice to Professional" by Apress? I haven't read it, but it seems to have good reviews...)
Originally a "Nutshell" offering, written by Ruby creator Yukihiro Matsumoto, the new edition (written along with David Flanagan) retains the laudable grittiness of a "Nutshell" book, but can be read cover-to-cover. The very first chapter takes readers on a tour of the language, then presents a nifty Sudoku solver consisting of just 129 lines. It's startling how well the program reads, and how quickly one begins comprehending Ruby code. The approach gives readers a feel for Ruby's succinct, efficient syntax, as well as its expressiveness and power.
Highly recommended.
In my top 10 of all time...This book is quite simply one of the finest software development books ever written. The style, the length, the scope, and the structure are all absolutely perfect. The balance creates a reading experience that seemingly opens a channel to your brain and feeds the information in.
Flanagan is a master author of technical books, especially languages. His JavaScript book is equally well done. Matsumoto's unique technical mastery here leaves no stone unturned. And even the artwork by "why the lucky stiff" added a fun element that just rounded out the book as the best in its class.
If I could forget the whole thing, just so I could read it again, I would. It is that good.
Excellent Guide To RubyReally found this to be an excellent guide to the Ruby programming language. This is definitely not just the API rehashed in print.
The difference in the style of this book and some others, in my opinion, is the difference between a map and a travel guide. A map may show you what and where things are, and may even be useful for figuring out how to go between locations, a travel guide will often include maps plus the inside scoop on what is interesting.
This book is similar. The writing style is like having an expert sit down and explain to you the various facets of the language, how to use them, points that are notable, etc. And all of this content is within a reasonable 400 pages.
Highly recommended.
Exactly what I expected from O'ReillyI wish every book about a programming language was written like this one:
First, it is fairly compact and doesn't waste space (and your time) explaining to you what is a byte or a register, like some 800 page "volumes about everything" do. It correctly assumes that the reader is a programmer and explains the language, not the programming.
Second, it covers Ruby in depth. Read this book and you'll easily understand the most craziest Ruby code examples that could be found inside of Rails and other popular libraries. Moreover, I've found a few tricks in the book that I don't believe I saw in the wild.
And finally, author's language is very clean, free of buzzwords and needless repetitions. As always with O'Reilly books, this one is also very neatly structured and makes an excellent reference book.
Buy it.
Makes Dave Thomas look bad... Well... Worse than he normally does.Very, very dense reading, but very complete as well. Aspects of the language that were only glanced over (or even ignored entirely) by the "pickaxe" book are covered in great detail. The only downside is that you have to look at several of those horrible high school notebook doodles the wannabe Murakami "Why" produces whenever people convince him that he's either "clever" or "talented."
Worthy of comparison to K&RThis is well written, well organized, and covers the whole core language. It isn't a cookbook, and it isn't an API reference, but for what it is, it's excellent.
The organization makes sense, the index is usable, and the writing is precise enough to leave no ambiguity.
My only complaint would be too much space spent on differences between 1.8.6 and 1.9, and too much attention to text encodings.
great booki write in ruby for about a year or two, mostly as a hoby. after i wrote a lot of simple and complex programs, there were still some basic (or not so basic) things that about ruby that were not so clear to me. this book made it all clear. all i can say about this book is that it is a great book and i recommend it to anyone programming in ruby.
The best Ruby book I've seen"The Ruby Programming Language" is everything you'd hope for from an O'Reilly book that is co-written by the language creator and the author of "Java in a Nutshell." This is a well-written, concise, and thorough guide the Ruby language.
Unlike the Pickaxe, which tries to be everything from an OOP introduction to a complete library reference, this book focuses on concisely documenting the Ruby language. If you're looking to learn how to program, look elsewhere - the Pickaxe is a much better choice. On the other hand, if you're already familiar with OOP concepts, this book (along with [...]) is all you really need to understand the language.
Of note, the book is also very current, covering both Ruby 1.8 and 1.9. As such things go, this is about as future-proof as it gets - it will remain current for years.
I can't really stress enough how well-written this book is. The authors don't overwhelm you with jargon, nor do they bury important details between fluff and analogies - I find it to be the perfect balance of density and legibility. Seldom do I find technical references such a joy to read.
In short, if you work with Ruby (or plan to in the future), you really should buy this book. You won't regret it.
The Ruby Book!If you already know Ruby and want kick the best out of it, this is your chaperone.
No-nonsense info, concise & useful examples, a writing style clear as the sun.
Finally we have the The Ruby Book!
Matz Gets It Right!This book does for Ruby what Kernighan & Ritchie's "The C Programming Language" did for C. It provides a concise, accessible introduction to the Ruby programming language.
Starting out with a tour of Ruby, you are then taken on a deeper dive into chapters on "Structure and Execution", "Datatypes and Objects", "Expressions and Operators", and "Statements and Control Structures". Some of the real power of Ruby is revealed in chapters on "Methods, Procs, Lambdas, and Closures", "Classes and Modules", and "Reflection and Metaprogramming".
The book closes with chapters on "The Ruby Platform" and "The Ruby Environment". The chapter on the Ruby Platform is like a condensed API guide to Ruby's core library. The chapter on the Ruby Environment will help you navigate through the Ruby interpreter's command-line arguments and environment variables as well as a grab-bag of extra Ruby topics that were not covered earlier in the book.
The book is well organized and easy to read. Each chapter is peppered with code samples. If you are serious about learning Ruby, get this book! It sits on my bookshelf, next to a copy of the Pickaxe book and The Ruby Way. Bonus: each chapter of the book starts with a work of art by why the lucky stiff!
The new go-to Ruby referenceThe Ruby Programming Language is my new favorite Ruby book. I personally think it is a better text than the famous "Pickaxe" book. While the Pickaxe has a great class/module reference (it's over half of the book, after all), the actual explanations of how Ruby works in The Ruby Programming Language are clearer and go into much more depth. Most importantly for me, The Ruby Programming Language covers some of the more complicated topics, such as metaprogramming, with MUCH more depth. From the Pickaxe alone I had trouble understanding how some of these Ruby features worked. But with this new book, it's much clearer.
If you want the defacto Ruby book, this is it.
Quite possibly the be all and end all of Ruby booksFor a long time now Dave Thomas' Programming Ruby: The Pragmatic Programmers' Guide, Second Edition (aka. The Pickaxe) has been the standard in the Ruby community as the book to learn Ruby from. Unfortunately the Pickaxe is not the best programming book ever written. In fact, its bulk and slowness almost killed my inspiration to learn Ruby. I respect Dave Thomas a lot for what he does for the Ruby community but the Pickaxe and I just did not click.
Since I didn't find the Pickaxe to be excellent reading material, I had been eagerly anticipating David Flanagan's The Ruby Programming Language to come out and unseat The Pickaxe as the de facto book to recommend to newcomers to Ruby.
I am happy to say that The Ruby Programming Language did not disappoint. I picked up this book solely expecting to just review it since I already comfortable programming in Ruby. However, once I started reading the book I found myself frequently learning things about Ruby that I didn't know before. Not like little things either like, "oh that's interesting". I'm talking significant things like "holy crap that's sweet!".
This book covers both Ruby 1.8 and Ruby 1.9. Initially this concerned me because as impressive as it is, it must have been quite a headache for the authors and was not sure how they were going to pull it off. It turns out to be pretty much a non-issue. The authors make a note of what is 1.8 or 1.9 only and it does not disturb the flow of the book since it doesn't come up too frequently. I do hope though that after Ruby 1.9 stable is released they upgrade the book and tear out all the 1.8 specific material. Since I currently use 1.8 on a daily basis I don't mind having 1.8 material in there but after everything has shifted to 1.9 it would be rather irksome.
The style of the book is fairly straightforward. It starts with an introduction to how Ruby programs work and then goes into an explanation of Ruby datatypes and objects. The later chapters cover advanced topics like reflection and metaprogramming. The authors opted not to go the tutorial route, which I think, was a good approach since the book is not designed to be an "intro to programming" text.
In the preface of the book, the authors state:
> [The Ruby Programming Language] is loosely modeled after the classic C Programming Language (2nd Edition) (Prentice Hall Software) by Kernighan and Ritchie and aims to document the Ruby language comprehensively but without the formality of a language specification. It is written for experienced programmers who are new to Ruby, and for current Ruby programmers who want to take their understanding and mastery of the language to the next level.
O'Reilly is hoping that The Ruby Programming Language becomes the equivalent of K&R's The C Programming Language for Ruby and I hope it succeeds. I think that every language needs their own K&R book for people to turn to as the definitive authority. That's something that I feel like the Java programming language never had and it creates something of a hurdle when browsing for a Java book.
The third edition of the Pickaxe is in beta and will be coming out soon. I really hope it makes a strong showing when it hits the press because after the bangup job Flanagan and Matz did with The Ruby Programming Language, there is no reason to look at the Pickaxe till then.
Excellent, but should not be used as a tutorialThis is an excellent reference book on Ruby, if you already know Ruby this book will help you a lot, but if you are looking for a tutorial on Ruby this book should not be your first choice.
