1. 程式人生 > >重構-改善既有的程式碼設計-重新組織函式(6-2)

重構-改善既有的程式碼設計-重新組織函式(6-2)

6.6.分解臨時變數(Split Temporary Variable)

6.7.移除對引數的賦值(Remove Assignments to Parameter)

6.8.以函式物件取代函式(Replace Method with Method Object)

6.9.替換演算法(Substitute Algorithm)