重構-改善既有代碼的設計——筆記

重構手法 抽取函數(extract method) 抽取類(extract class) 移動函數(move method) 使用查詢替代臨時變量(replace tem with query) 使用狀態模式/策略模式替代類型碼(replace type code with state/strategy) 使用多態替代條件判斷(replace conditional with polymorphi
相關文章
相關標籤/搜索