By Jay Fields
The Definitive Refactoring consultant, totally made over for Ruby
With refactoring, programmers can remodel even the main chaotic software program into well-designed structures which are a ways more uncomplicated to conform and preserve. What’s extra, they could do it one step at a time, via a chain of straightforward, confirmed steps. Now, there’s an authoritative and broadly up-to-date model of Martin Fowler’s vintage refactoring publication that makes use of Ruby examples and idioms throughout–not code tailored from Java or the other environment.
The authors introduce a close catalog of greater than 70 confirmed Ruby refactorings, with particular counsel on whilst to use every one of them, step by step directions for utilizing them, and instance code illustrating how they paintings. a number of the authors’ refactorings use robust Ruby-specific positive aspects, and all code samples can be found for obtain.
Leveraging Fowler’s unique suggestions, the authors convey find out how to practice refactoring in a managed, effective, incremental demeanour, so that you methodically increase your code’s constitution with no introducing new insects. no matter what your position in writing or preserving Ruby code, this publication should be an vital source.
This publication can assist you
• comprehend the middle ideas of refactoring and the explanations for doing it
• realize “bad smells” on your Ruby code
• remodel undesirable designs into well-designed code, one step at a time
• construct checks to ensure your refactorings paintings properly
• comprehend the demanding situations of refactoring and the way they are often overcome
• Compose how to package deal code properly
• circulation gains among items to put tasks the place they healthy most sensible
• set up facts to provide help to paintings with
• Simplify conditional expressions and make greater use of polymorphism
• Create interfaces which are more straightforward to appreciate and use
• Generalize extra effectively
• practice higher refactorings that rework whole software program platforms and will take months or years
• effectively refactor Ruby on Rails code