Attention: For textbook, access codes and supplements are not guaranteed with used items.
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