Refactoring: Ruby Edition

Refactoring: Ruby Edition
Authors
Jay Fields, Shane Harvie, Martin Fowler, Kent Beck
ISBN
0321603508
Published
25 Oct 2009
Purchase online
amazon.com

The Definitive Refactoring Guide, Fully Revamped for RubyWith refactoring, programmers can transform even the most chaotic software into well-designed systems that are far easier to evolve and maintain. What’s more, they can do it one step at a time, through a series of simple, proven steps.

Page 2 of 2
  1. Editorial Reviews
  2. Customer Reviews

Customer Reviews

Midwest Book Review said
Any advanced programmer's library needs Jay Fields, et.al.'s REFACTORING RUBY EDITION, the definitive, fully revamped guide for Ruby programming. Programmers can change even the most chaotic software into disciplined, logical systems through refactoring - and this teaches the basics of refactoring and its logic, how to rework bad designs into good code, building tests and organizing data, and more.

T. Holahan said
I've been reading "Refactoring, Ruby Edition" alongside the original edition, which I bought used a few months, not knowing that this book was in the works.

One thing I've learned is that the original is an excellent book, one that probably ranks with "Design Patterns" in practical programming literature.

However, "Refactoring, Ruby Edition" seems to be a sloppy and poorly-edited attempt to cash in on the original. I've found errors on almost every page I've read. It looks as if someone cut and paste the text from the original into a new document, quickly converted the Java examples to Ruby (without testing or review, given some of the errors), and went to press.

My guess is that this was the idea of someone who knows that there are lots of new Ruby programmers who don't have a grounding in Java and are therefore intimidated by the original book. That idea is fine -- Russ Olsen's "Design Patterns in Ruby" seems to be a thorough and careful reworking of that book for a Ruby audience -- but the execution here is really lame. Here are some specifics:

* There are many errors in the code examples and UML diagrams that make them difficult to follow. Until you realize they're bugs, you think you're missing something; that kind of thing is tough for novice programmers to identify and correct for. (Ironically, given that the name of the book is "refactoring", these bugs aren't in the first edition.

* The original edition contained illustrative anecdotes about refactoring practice that were clearly presented as call-outs with graphic design techniques like boxing and shaded backgrounds. These design hints are missing from the new edition, and the anecdotes (by other authors) interrupt the text in a confusing way, since they look like a regular part of the text-flow.

* The reader is advised to use the "table in the inside back cover" to identify and address code smells, but there is no table in the inside back cover. There is one in the original edition, however, and it's quite useful. Who knows whether the table was supposed to be included but was forgotten, or was intentionally left out to cut costs?

It seems like no one took another look at this book once the first-draft manuscript was in hand. Martin Fowler and Jay Fields have contributed an enormous amount to the industry, and I'm surprised they would put their names on something this sloppy. Addison-Wesley charges a lot for their books, and they should provide a carefully-edited product in return.

Andres Paglayan said
Got it yesterday and cannot detach it from my hands. I won't list a review of content here because it's on the book preview.

Techniques you might already be doing intuitively, and many you probably don't, are described with clear examples and detail helping you convert intuitive decisions into a continuous working method.

This book is a cornerstone for people who is serious about Ruby and want their code to be readable, robust, built from testing, beautiful and easy to change.

You might also like...

Comments

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Never trust a programmer in a suit.” - Anonymous