Spiga

一天一个重构方法:汇总

2009-10-31 13:53:48

一天一个重构方法(1):Extract Method

一天一个重构方法(2):Inline Method

一天一个重构方法(3):Switch to Strategy

一天一个重构方法(4):Break Dependencies

一天一个重构方法(5):Introduce Explaining Variable

一天一个重构方法(6):Extract Method Object

一天一个重构方法(7):Break Responsibilities

一天一个重构方法(8):Encapsulate Conditional

一天一个重构方法(9):Substitute Algorithm

一天一个重构方法(10):Rename Method

一天一个重构方法(11):Add Parameter

一天一个重构方法(12):Remove Parameter

一天一个重构方法(13):Remove Arrowhead Antipattern

一天一个重构方法(14):Parameterize Method

一天一个重构方法(15):Replace Parameter with Explicit Methods

一天一个重构方法(16):Remove Double Negative

一天一个重构方法(17):Return ASAP

一天一个重构方法(18):Introduce Parameter Object

一天一个重构方法(19):Replace Error Code with Exception

一天一个重构方法(20):Replace Exception with Test

一天一个重构方法(21):Replace Constructor with Factory Method

一天一个重构方法(22):Encapsulate Downcast

一天一个重构方法(23):Introduce Design By Contract

一天一个重构方法(24):Extract class

一天一个重构方法(25):Pull Up Field

一天一个重构方法(26):Pull Up Mothod

一天一个重构方法(27):Push Down Field

一天一个重构方法(28):Push Down Method

一天一个重构方法(29):Remove God Classes

一天一个重构方法(30):Move Method

一天一个重构方法(31):Replace Magic Number with Symbolic Constant

一天一个重构方法(32):Extract Superclass

一天一个重构方法(33):Extract Subclass

一天一个重构方法(34):Extract Interface

一天一个重构方法(35):Remove Middle Man

一天一个重构方法(36):Encapsulate Collection

一天一个重构方法(37):Collapse Hierarchy

一天一个重构方法(38):Replace Inheritance with Delegation

一天一个重构方法(39):Replace conditional with Polymorphism