- File Size: 8059 KB
- Print Length: 222 pages
- Simultaneous Device Usage: Up to 5 simultaneous devices, per publisher limits
- Publisher: Addison-Wesley Professional; 1 edition (September 8, 2014)
- Publication Date: September 8, 2014
- Sold by: Amazon Digital Services LLC
- Language: English
- ASIN: B00NEOERH6
- Text-to-Speech: Enabled
- Word Wise: Not Enabled
- Lending: Not Enabled
- Amazon Best Sellers Rank: #257,596 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
Effective Ruby: 48 Specific Ways to Write Better Ruby (Effective Software Development Series) 1st Edition, Kindle Edition
Use the Amazon App to scan ISBNs and compare prices.
"Children of Blood and Bone"
Tomi Adeyemi conjures a stunning world of dark magic and danger in her West African-inspired fantasy debut. Learn more
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.
Customers who bought this item also bought
Would you like to tell us about a lower price?
Top customer reviews
There was a problem filtering reviews right now. Please try again later.
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.
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.
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!
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.
In "Effective Ruby, 48 Specific Ways to Write Better Ruby", Peter J. Jones demonstrates his knowledge of Ruby - in a hands-on and practical manner - achieving the much deserved accolade as both teacher and guide.
The clarity of writing is reminiscent of Kernighan and Ritchie, Scott Meyers, and Joshua Bloch
Ruby is a worthwhile language to have in your toolbox - and this book is a welcome addition to my technical library.