重構列表

Add Parameter 添加參數 275

Change Bidirectional Association to Unidirectional 將雙向關聯改爲單向 200

Change Unidirectional Association to Bidirectional 將單向關聯改爲雙向 197

Change Reference to Value 將應用對象改爲實值對象 183

Change Value to Reference將實值對象改爲實引用對象 179

Collapse Hierarchy 摺疊繼承體系  344

Consolidate Conditional Expression合併條件式 240

Consolidate Duplicate Conditional Fragments合併重複的條件片段 243

Convert Procedural Design to    Object 將過程設計轉化爲對象設計 368

Decompose Conditional 分解條件式 238

Duplicate Observe Data複製被監視數據 189

Encapsulate Collection 封裝集羣 208

Encapsulate Downcast 封裝向下轉型動作 308

Encapsulate Filed 封裝值域 206

Extract Class提煉類 149

Extract Hierarchy提煉集成體系 375

Extract Interface 提煉接口 341

Extract Method提煉函數 110

Extract Subclass提煉子類 330

Extract SuperClass 提煉超類 336

Form Template Method 塑造末班函數 345

Hide Delegate隱藏委託關係 157

Hide Method    隱藏函數 303

Inline Class將類內聯化 154

Inline Method將函數內聯化 117

Inline Temp將臨時變量內聯化 119

Introduce Assertion 引入斷言 267

Introduce Explaining Variables 引入解釋型變量  124

Introduce Foreign Method引入外加函數 162

Introduce Local Extension 引入本地擴展 164

Introduce Null Object引入空對象 260

Introduce Parameter  Obuject 引入參數對象 295

Move Filed 搬移值域146

Move Method 搬移函數 142

Parametrize Method令函數攜帶參數 283

Preserve Whole  Object保持對象完整 288

Pull Up Constructor Body 構造函數本體上移  325

Pull Up Filed 值域上移 320

Pull  Up Method 函數上拉 322

Push Down Filed 值域下移 329

Push Down Method函數下移 328

Remove Assignments to Parameters 移除對參數的賦值操作 131

Remove Control Flag 移除控制標記 245

Remove  Middel Man 移除中間人 160

Remove  parameter 移除參數 277

Remove  setting Method 移除設值函數 300

Rename Method 重新命名函數 273

Replace Array  With Object 以對象代替數組 186

Replace  Conditional with Polymorpism 一多態替代條件式 255

Replace Construntor with Factory Method 以工廠方法取代構造函數 304

Replace with Value  with  Object 以對象取代數據值 175

Replace Delegate with Inheritance 以繼承取代委託 355

Replace Error Code with Exception 以異常取代錯誤碼 310

Replace  Exception  with Test 以測試 取代異常

Replace Inheritance with Delegation 以委託取代集成

Replace Magic Number with Symbolic Constant 以字面長臉取代魔法數 204

Replace Method with Method Object 以函數對象取代函數 135

Replace Nested Conditional with  Guard Clauses  以衛語句取代嵌套語句 250

Replace Parameter wiht Explict Methods 以明確函數取代參數 285

Replace Parameter with Method 以函數取代參數 292

Replace record with Data Class 以數據類取代記錄217

Replace subclass with fileds 以值域取代子類232

Replace Temp with QUery 以查詢式取代臨時變量120

Replace Type Code with Class 以類取代型別碼 218

Replace Type Code with state/strategy 以state/strategy取代型別碼 227

Replace Type Code with subclass 以子類取代型別碼 223

Self Encapsulate Filed 自封裝值域171

Separate Domain from Presentation 將領域和表述,顯示分離 370

Separate Query from Modifier將查詢函數和修改函數分離 279

Split Temporary variables剖解臨時變量 128

Substitute Algorithm替換你的算法 139

Tease Apart Inheritance 梳理並分解繼承體系 362








發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章