Start reading Refactoring: Ruby Edition on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here or start reading now with a free Kindle Reading App.

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

Refactoring: Ruby Edition (Addison-Wesley Professional Ruby Series)
 
 

Refactoring: Ruby Edition (Addison-Wesley Professional Ruby Series) [Kindle Edition]

Jay Fields , Shane Harvie , Martin Fowler , Kent Beck
5.0 out of 5 stars  See all reviews (1 customer review)

Kindle Price: £16.30 includes VAT* & free wireless delivery via Amazon Whispernet
* Unlike print books, digital books are subject to VAT.

Free Kindle Reading App Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.

To get the free app, enter your e-mail address or mobile phone number.

Formats

Amazon Price New from Used from
Kindle Edition £16.30  
Hardcover --  
Paperback £33.99  
Kindle Daily Deal
Kindle Daily Deal: Up to 70% off
Each day we unveil a new book deal at a specially discounted price--for that day only. Learn more about the Kindle Daily Deal or sign up for the Kindle Daily Deal Newsletter to receive free e-mail notifications about each day's deal.


Product Description

Product Description

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

From the Back Cover

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


Product details

  • Format: Kindle Edition
  • File Size: 10103 KB
  • Print Length: 480 pages
  • Simultaneous Device Usage: Up to 5 simultaneous devices, per publisher limits
  • Publisher: Addison-Wesley Professional; 1 edition (15 Oct 2009)
  • Sold by: Amazon Media EU S.à r.l.
  • Language: English
  • ASIN: B002TIOYWG
  • Text-to-Speech: Enabled
  • X-Ray:
  • Word Wise: Not Enabled
  • Average Customer Review: 5.0 out of 5 stars  See all reviews (1 customer review)
  • Amazon Bestsellers Rank: #347,485 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?


More About the Authors

Discover books, learn about writers, and more.


Customer Reviews

4 star
0
3 star
0
2 star
0
1 star
0
5.0 out of 5 stars
5.0 out of 5 stars
Most Helpful Customer Reviews
5.0 out of 5 stars Excellent 5 Aug 2011
Format:Hardcover
I read it from front to back during my Holiday. It was a time saver for me: learn 'the-ruby-way-of-thinking' and 'applying design patterns' in 1 efficient effort. It was a pleasure to read.
Comment | 
Was this review helpful to you?
Most Helpful Customer Reviews on Amazon.com (beta)
Amazon.com: 3.7 out of 5 stars  9 reviews
49 of 50 people found the following review helpful
3.0 out of 5 stars Disappointing revision of a classic. 8 Jan 2010
By T. Holahan - Published on Amazon.com
Format:Hardcover|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.
19 of 21 people found the following review helpful
2.0 out of 5 stars Mediocre 30 Jan 2010
By Jeff M. Dean - Published on Amazon.com
Format:Hardcover|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.
2 of 2 people found the following review helpful
3.0 out of 5 stars Good content, poor layout 20 Feb 2014
By Costa Michele - Published on Amazon.com
Format:Paperback
I do not read original book by Fowler, but found the information on this one very useful when dealing with pre-existent (legacy) ruby code and when writing my brand new routines too.

What i dislike more is that it's obvious the book has been written by different authors:
- Fowler clearly wrote first chapters: writing style is elegant and clear, letting you avid for more.
- starting from chapter 4 you immediately notice Martin has left; by the way i found Sandy Metz work on the topic much more enjoyable (practical object-oriented design in ruby, chapter 9)
- when you start patterns implementation chapters (from 5 on) again you found a less expert writer: information are very useful to me, if you are ready for repetitive/buggy examples (more than once i get confused by same snippet used for both confirming/confuting a particular pattern, until i realize refactoring is a matter of developer's sensibility/experience).

At the end this is a useful volume, but i would have preferred it to be written by a single author:
- Fowler: you'd probably end up having a more conceptual, elegant written book, with less (but relevant) examples
- Fields: the entire book would probably consist of chapters 5-13, being more practical and concise (300 pages long)
2 of 2 people found the following review helpful
1.0 out of 5 stars Really poor layout 23 April 2014
By newlix - Published on Amazon.com
Format:Kindle Edition
It's much better to read the original edition even if you have to translate JAVA into Ruby.
There are so many errors.
Many refactorings start at the end of a page and are immediately cut by the page. It is a very unpleasant reading experience.
Strongly recommend go for the classic JAVA edition.
4.0 out of 5 stars Must Read for Ruby Developers Not Familiar With the Specific Refactorings 5 Nov 2013
By Koby - Published on Amazon.com
Format:Kindle Edition
A must read for any Ruby developer who isn't familiar with the specifics of refactoring. If you've heard of refactoring and think you're doing it when you move code around, you're probably doing some variation of the specific refactorings discussed in this book. You need to read this book to better understand the various kinds of refactoring that you can utilize to clean up your code base so that it's more readable and maintainable.
Were these reviews helpful?   Let us know
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   


Look for similar items by category