- Series: Effective Software Development Series
- Paperback: 240 pages
- Publisher: Addison-Wesley Professional; 1 edition (October 5, 2014)
- Language: English
- ISBN-10: 0133846970
- ISBN-13: 978-0133846973
- Product Dimensions: 6.9 x 0.6 x 8.9 inches
- Shipping Weight: 1 pounds (View shipping rates and policies)
- Average Customer Review: 13 customer reviews
- Amazon Best Sellers Rank: #904,689 in Books (See Top 100 in Books)
Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your mobile phone number.
Effective Ruby: 48 Specific Ways to Write Better Ruby (Effective Software Development Series) 1st Edition
Use the Amazon App to scan ISBNs and compare prices.
The Amazon Book Review
Author interviews, book reviews, editors picks, and more. Read it now
Frequently bought together
Customers who bought this item also bought
Top customer reviews
There was a problem filtering reviews right now. Please try again later.
Even Ruby experts will enjoy this book as it's written in a direct, no-nonsense style and the items act as quick, handy reminders of things you knew but somehow forgot anyway.
The only criticism the book could face is that the 48 items are a little arbitrary. They're bundled into groups, but I feel you could easily have several other books that followed the same format and covered different items. Maybe there'll be Effective Ruby 2, 3, and beyond around the corner? :-)
I think this book is a good read for beginner and intermediate Ruby developers to learn more of the language features and write better, more maintainable code. The author has geared the book towards people who have some experience with Ruby and points out some of the common pitfalls that developers new to Ruby might face.
The book has 48 items to help you improve your code and covers everything from Ruby basics to an overview of the garbage collector. As someone who has been using Ruby for a few years, I learned a few new things about collections, Ruby's inheritance hierarchy, exceptions, and performance tips.
I thought the section on testing was a little thin, but there are entire books dedicated to testing and it is a tough topic to address in a single chapter. I think the author's intention is just to make the reader aware of the testing tools and methodologies available.
All in all, I thought this was a good read. I'll keep it handy and look forward to applying and experimenting with some of the ideas.
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.
I found the chapter on Classes, Objects and Modules to be very useful in understanding how Ruby treats inheritance and method dispatching and the implications of which the reader should be aware of. Also of note, the chapter on meta-programming sheds some light on very useful techniques to avoid shooting yourself in the foot, a pretty common occurrence when meta-programming in Ruby.
I have been programming Ruby for years and I enjoyed reading the book a great deal. I learned some new tricks and re-acquainted myself with some forgotten ones as well.
Some of the cool highlights that were very informative for me were:
- provided an example of how to use protected methods for a actual real life example
- great use case for class variable vs class instance variable and the pitfalls of class variables
- great overview and best practices around exceptions
If you want to go into deeper discussion and thought on Metaprogramming there is a great book for that, Metaprogramming Ruby. As well as the Ruby internals (i.e. garbage collection), Ruby under the microscope. But for a great overall of the cool tricks of Ruby, this is a great book!