In 2009, Sean Chambers published a series of articles on his blog 31 Days of Refactoring: Useful refactoring techniques you have to know , one article a day, introducing a method of refactoring, and 31 articles in a row, hence the name "Refactoring Three" Eleven Days: Refactoring Tools You Should Master". In addition, Sean Chambers organized these 31 articles [that is, 31 reconstruction methods] into an e-book. The following are the original blog link and e-book download address:
Original blog post: http://lostechies.com/seanchambers/2009/07/31/31-days-of-refactoring/
E-book download address: http://lostechies.com/wp-content/uploads/2011/03/31DaysRefactoring.pdf
Refactoring 1: Encapsulate Collection [Refactoring Type 1: Encapsulate Collection]
Refactoring 2: Move Method
Refactoring 3: Pull Up Method
Refactoring 4: Pull Up Field
Refactoring 5: Push Down Method
Refactoring 6: Push Down Field
Refactoring 7: Rename(method, class, parameter) [Refactoring Seventh Form: Rename (method, class, parameter)]
Refactoring 8: Replace Inheritance with Delegation
Refactoring 9: Extract Interface
Refactoring 10: Extract Method
Refactoring 11: Switch to Strategy
Refactoring 12: Break Dependencies
Refactoring 13: Extract Method Object
Refactoring 14: Break Responsibilities
Refactoring 15: Remove Duplication
Refactoring 16: Encapsulate Conditional
Refactoring 17: Extract Superclass
Refactoring 18: Replace exception with conditional
Refactoring 19: Extract Factory Class
Refactoring 20: Extract Subclass
Refactoring 21: Collapse Hierarchy
Refactoring 22: Break Method
Refactoring 23: Introduce Parameter Object
Refactoring 24: Remove Arrowhead Antipattern
Refactoring 25: Introduce Design By Contract checks
Refactoring 26: Remove Double Negative
Refactoring 27: Remove God Classes
Refactoring 28: Rename boolean method
Refactoring 29: Remove Middle Man
Refactoring 30: Return ASAP
Refactoring 31: Replace conditional with Polymorphism
In the process of writing this series of articles, I referred to the translated version of Kylin.NET "31 Days of Refactoring Quickly: Refactoring Skills You Must Know" and "31 Days of Refactoring Study Notes" by Knights Warrior