Refactoring_ImprovingtheDesignofExisting.epub
- 资料大王PDF
-
0 次阅读
-
0 次下载
-
2024-11-03 23:03:19
微信
赏
支付宝
文档简介:
Refactoring: Improving the Design of Existing Code
Martin Fowler
Kent Beck
John Brant
William Opdyke
Don Roberts
Boston • San Francisco • New York • Toronto • Montreal
London • Munich • Paris • Madrid
Capetown • Sydney • Tokyo • Singapore • Mexico City
Table of Contents
Copyright
Foreword
Preface
What Is Refactoring?
What's in This Book?
Who Should Read This Book?
Building on the Foundations Laid by Others
Acknowledgments
Chapter 1. Refactoring, a First Example
The Starting Point
The First Step in Refactoring
Decomposing and Redistributing the Statement Method
Replacing the Conditional Logic on Price Code with Polymorphism
Final Thoughts
Chapter 2. Principles in Refactoring
Defining Refactoring
Why Should You Refactor?
Refactoring Helps You Find Bugs
When Should You Refactor?
What Do I Tell My Manager?
Problems with Refactoring
Refactoring and Design
Refactoring and Performance
Where Did Refactoring Come From?
Chapter 3. Bad Smells in Code
Duplicated Code
Long Method
Large Class
Long Parameter List
Divergent Change
Shotgun Surgery
Feature Envy
Data Clumps
Primitive Obsession
Switch Statements
Parallel Inheritance Hierarchies
......
评论
发表评论