|
作者:Jay Fields, Shane Harvie, Martin Fowler, Kent Beck
出版日期:October 25, 2009
出版社:Addison Wesley
页数:480
ISBN:ISBN-10: 0321603508 ISBN-13: 978-0321603500
文件格式:PDF
The Definitive Refactoring Guide, Fully Revamped for Ruby
With refactoring, programmers can transformeven the most chaotic software into well-designed systems that are fareasier to evolve and maintain. What’s more, they can do it one step ata time, through a series of simple, proven steps. Now, there’s anauthoritative and extensively updated version of Martin Fowler’sclassic refactoring book that utilizes Ruby examples and idiomsthroughout–not code adapted from Java or any other environment.
The authors introduce a detailed catalog ofmore than 70 proven Ruby refactorings, with specific guidance on whento apply each of them, step-by-step instructions for using them, andexample code illustrating how they work. Many of the authors’refactorings use powerful Ruby-specific features, and all code samplesare available for download.
Leveraging Fowler’s original concepts, theauthors show how to perform refactoring in a controlled, efficient,incremental manner, so you methodically improve your code’s structurewithout introducing new bugs. Whatever your role in writing ormaintaining 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 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|