Start reading Refactoring: Ruby Edition on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here.

Deliver to your Kindle or other device

 
 
 

Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Read books on your computer or other mobile devices with our FREE Kindle Reading Apps.
Refactoring: Ruby Edition
 
 

Refactoring: Ruby Edition [Kindle Edition]

Kent Beck , Jay Fields , Shane Harvie , Martin J Fowler
3.8 out of 5 stars  See all reviews (4 customer reviews)

Digital List Price: $39.99 What's this?
Print List Price: $49.99
Kindle Price: $17.69 includes free wireless delivery via Amazon Whispernet
You Save: $32.30 (65%)

Formats

Amazon Price New from Used from
Kindle Edition $17.69  
Hardcover $37.49  

Book Description

October 15, 2009

The Definitive Refactoring Guide, Fully Revamped for Ruby

 

With 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. Now, there’s an authoritative and extensively updated version of Martin Fowler’s classic refactoring book that utilizes Ruby examples and idioms throughout–not code adapted from Java or any other environment.

 

The authors introduce a detailed catalog of more than 70 proven Ruby refactorings, with specific guidance on when to apply each of them, step-by-step instructions for using them, and example code illustrating how they work. Many of the authors’ refactorings use powerful Ruby-specific features, and all code samples are available for download.

 

Leveraging Fowler’s original concepts, the authors show how to perform refactoring in a controlled, efficient, incremental manner, so you methodically improve your code’s structure without introducing new bugs. Whatever your role in writing or maintaining Ruby code, this book will be an indispensable resource.

 

This book will help you

  • Understand the core principles of refactoring and the reasons for doing it
  • Recognize “bad smells” in your Ruby code
  • Rework bad designs into well-designed code, one step at a time
  • Build tests to make sure your refactorings work properly
  • Understand the challenges of refactoring and how they can be overcome
  • Compose methods to package code properly
  • Move features between objects to place responsibilities where they fit best
  • Organize data to make it easier to work with
  • Simplify conditional expressions and make more effective use of polymorphism
  • Create interfaces that are easier to understand and use
  • Generalize more effectively
  • Perform larger refactorings that transform entire software systems and may take months or years
  • Successfully refactor Ruby on Rails code

Customers Who Bought This Item Also Bought


Editorial Reviews

About the Author

Jay Fields is a software developer for DRW Trading and a frequent conference presenter. Jay has a passion for discovering and maturing innovative solutions. Jay’s website is available at www.jayfields.com.

 

Shane Harvie has delivered software in Agile environments in the United States, India, and Australia. He works for DRW Trading in Chicago and blogs at www.shaneharvie.com.

 

Martin Fowler is Chief Scientist at ThoughtWorks and one of the world’s leading experts in the effective design of enterprise software. He has pioneered object-oriented development, patterns, agile methodologies, domain modeling, UML, and Extreme Programming. His books include Refactoring, Analysis Patterns, and UML Distilled. His book, Patterns of Enterprise Application Architecture, won Software Development’s Jolt Productivity Award and Javaworld.com’s best Java book award.

 


Product Details

  • File Size: 10129 KB
  • Print Length: 480 pages
  • Simultaneous Device Usage: Up to 5 simultaneous devices, per publisher limits
  • Publisher: Addison-Wesley Professional; 1 edition (October 15, 2009)
  • Sold by: Amazon Digital Services
  • Language: English
  • ASIN: B002TIOYWG
  • Text-to-Speech: Enabled
  • Amazon Best Sellers Rank: #200,746 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?


Customer Reviews

Most Helpful Customer Reviews
28 of 29 people found the following review helpful
Format:Hardcover|Amazon Verified Purchase
I've been reading "Refactoring, Ruby Edition" alongside the original edition, which I bought used a few months ago, 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. Second, the revising authors added some valuable new material on refactoring in a Ruby environment.

However, "Refactoring, Ruby Edition" seems in some ways 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 errors, 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 errors 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.
Was this review helpful to you?
7 of 7 people found the following review helpful
Mediocre January 30, 2010
Format:Hardcover|Amazon Verified Purchase
If you are familiar with the Java version, you won't learn anything new from this book. If you are learning Ruby and are interested in this book, you should at least wait for a later edition that will hopefully fix all of the typos and mistakes.
Comment | 
Was this review helpful to you?
10 of 15 people found the following review helpful
Code Poetry how to October 25, 2009
Format:Hardcover|Amazon Verified Purchase
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.
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
Search Customer Reviews
Only search this product's reviews

Book Extras from the Shelfari Community

(What's this?)

To add, correct, or read more Book Extras for Refactoring , visit Shelfari, an Amazon.com company.


More About the Authors

Discover books, learn about writers, read author blogs, and more.

What Other Items Do Customers Buy After Viewing This Item?


Popular Highlights

 (What's this?)
&quote;
Any fool can write code that a computer can understand. Good programmers write code that humans can understand. &quote;
Highlighted by 12 Kindle users
&quote;
When you find you have to add a feature to a program, and the programs code is not structured in a convenient way to add the feature, first refactor the program to make it easy to add the feature, then add the feature. &quote;
Highlighted by 12 Kindle users
&quote;
whenever we feel the need to comment something, we write a method instead. &quote;
Highlighted by 11 Kindle users

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 

Your tags: Add your first tag
 

Customer Discussions

This product's forum
Discussion Replies Latest Post
Factual innaccuracy in synposis 0 Jan 15, 2009
See all discussions...  
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
   
Related forums



So You'd Like to...


Create a guide

Look for Similar Items by Category