Refactoring: Ruby Edition (Google eBook)
Pearson Education, Oct 15, 2009 - Computers - 480 pages
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
What people are saying - Write a review
Review: Refactoring: Ruby Edition, Adobe Reader (Addison-Wesley Professional Ruby Series)User Review - Sebastian - Goodreads
Good material and remains useful as a reference, but I take issue with the style of presenting each refactoring. It's effectively backwards, with a concluding recap first (minus any context), then ... Read full review
Review: Refactoring: Ruby Edition, Adobe Reader (Addison-Wesley Professional Ruby Series)User Review - Bill Gathen - Goodreads
Excellent introduction to the discipline of refactoring. You'll see these lessons reappear everywhere both in your code and in other learning materials. Part of the canon of programming (and now ... Read full review
Chapter 2 Principles in Refactoring
Chapter 3 Bad Smells in Code
Chapter 4 Building Tests
Chapter 5 Toward a Catalog of Refactorings
Chapter 6 Composing Methods
Chapter 7 Moving Features Between Objects
Chapter 8 Organizing Data
Chapter 9 Simplifying Conditional Expressions
Chapter 10 Making Method Calls Simpler
Chapter 11 Dealing with Generalization
Chapter 12 Big Refactorings
Chapter 13 Putting It All Together