

If youโre an experienced Ruby programmer, Effective Ruby will help you harness Rubyโs full power to write more robust, efficient, maintainable, and well-performing code. Drawing on nearly a decade of Ruby experience, Peter J. Jones brings together 48 Ruby best practices, expert tips, and shortcutsโall supported by realistic code examples. Jones offers practical advice for each major area of Ruby development, from modules to memory to metaprogramming. Throughout, he uncovers little-known idioms, quirks, pitfalls, and intricacies that powerfully impact code behavior and performance. Each item contains specific, actionable, clearly organized guidelines; careful advice; detailed technical arguments; and illuminating code examples. When multiple options exist, Jones shows you how to choose the one that will work best in your situation. Effective Ruby will help you systematically improve your codeโnot by blindly following rules, but by thoroughly understanding Ruby programming techniques. Key features of this concise guide include How to avoid pitfalls associated with Rubyโs sometimes surprising idiosyncrasies What you should know about inheritance hierarchies to successfully use Rails (and other large frameworks) How to use misunderstood methods to do amazingly useful things with collections Better ways to use exceptions to improve code reliability Powerful metaprogramming approaches (and techniques to avoid) Practical, efficient testing solutions, including MiniTest Unit and Spec Testing How to reliably manage RubyGem dependencies How to make the most of Rubyโs memory management and profiling tools How to improve code efficiency by understanding the Ruby interpreterโs internals Review: A mixed bag - I've been working with Ruby for more than a decade and I've recently decided to read more about Ruby and get more knowledge about the way the language works and this book seemed fit for this purpose, even if it is slightly dated and covers Ruby 1.9 up to Ruby 2.1. While there are some interesting bits of information, the author seems to have an issue with the way the language is designed, just like another reviewer noticed. One of the interesting things about Ruby is that it allows you to write concise object-oriented code, with a dash of functional programming and books like "Eloquent Ruby" or "The Ruby Way" try to explain the design choices, while "Effective Ruby" dismisses those choices and tries to shoehorn the language into something that the author enjoys more. Looking up Peter J. Jones, it seems like he moved towards other languages (e.g. Haskell) by the time this book was published, which is no surprise. I've been torn between two and three stars because I also have "Effective SQL" which uses nicer and slightly thinner paper. Inspecting the book, I noticed that my copy is "printed in Poland by desertcart Fulfillment" and I also assume there's a printing issue with the code, as all method definitions have a space between the method name and the parenthesis. However, I decided that two stars is a big harsh. Otherwise, if you have some money to spend and you want to improve your programming skills in Ruby, there are better books out there than this one, like "The Ruby Way" by Hal Fulton or "Polished Ruby Programming" by Jeremy Evans. Review: Good for Ruby - Practical tips to help you become a better programmer. Even better if you're using Ruby. :) IMO there is a real void when it comes to books on Ruby programming. ok, I understand the language. But how do I actually write good object-oriented programs using Ruby? This book answers some of those questions. Well worth the cost and the effort to read it. It will stay on my shelf at home as a welcome reference rather than my shelves at work where just anyone could walk off with it. They will just have to buy their own copy.
| Customer Reviews | 4.5 out of 5 stars 38 Reviews |
A**M
A mixed bag
I've been working with Ruby for more than a decade and I've recently decided to read more about Ruby and get more knowledge about the way the language works and this book seemed fit for this purpose, even if it is slightly dated and covers Ruby 1.9 up to Ruby 2.1. While there are some interesting bits of information, the author seems to have an issue with the way the language is designed, just like another reviewer noticed. One of the interesting things about Ruby is that it allows you to write concise object-oriented code, with a dash of functional programming and books like "Eloquent Ruby" or "The Ruby Way" try to explain the design choices, while "Effective Ruby" dismisses those choices and tries to shoehorn the language into something that the author enjoys more. Looking up Peter J. Jones, it seems like he moved towards other languages (e.g. Haskell) by the time this book was published, which is no surprise. I've been torn between two and three stars because I also have "Effective SQL" which uses nicer and slightly thinner paper. Inspecting the book, I noticed that my copy is "printed in Poland by Amazon Fulfillment" and I also assume there's a printing issue with the code, as all method definitions have a space between the method name and the parenthesis. However, I decided that two stars is a big harsh. Otherwise, if you have some money to spend and you want to improve your programming skills in Ruby, there are better books out there than this one, like "The Ruby Way" by Hal Fulton or "Polished Ruby Programming" by Jeremy Evans.
R**R
Good for Ruby
Practical tips to help you become a better programmer. Even better if you're using Ruby. :) IMO there is a real void when it comes to books on Ruby programming. ok, I understand the language. But how do I actually write good object-oriented programs using Ruby? This book answers some of those questions. Well worth the cost and the effort to read it. It will stay on my shelf at home as a welcome reference rather than my shelves at work where just anyone could walk off with it. They will just have to buy their own copy.
D**R
Just like the books of Scott Meyers
This book is much like like the books of Scott Meyers on C++, except this is about Ruby. I learned a few particular things I did not know about before, even though I have a lot of experience with Ruby. Not too shabby for a small book.
N**N
A must read book
Awesome book for any Ruby programmer. It goes from very basic until advanced level in a very nice pace (which makes it very easy to read) and it has the bonus of explaining how the GC works and why you should care about it. It changed how I think and write Ruby code on daily basis for sure a must read.
E**T
Highly recommended for intermediate Rubyists.
I've read a lot of books about Ruby, and I was a little bit concerned - whether I really need another one. As I like the idea of "Effective" series, I decided to give it a try. Bingo! Concise, insightful, and fun to read - I really like it!
Trustpilot
1 month ago
4 days ago