您的位置:首页 > 其它

重構列表

2014-05-03 10:07 429 查看
Add Parameter 添加参数 275
Change Bidirectional Association to Unidirectional 将双向关联改为单向 200Change Unidirectional Association to Bidirectional 将单向关联改为双向 197Change Reference to Value 将应用对象改为实值对象 183Change Value to Reference将实值对象改为实引用对象 179Collapse Hierarchy 折叠继承体系 344Consolidate Conditional Expression合并条件式 240Consolidate Duplicate Conditional Fragments合并重复的条件片段 243Convert Procedural Design to Object 将过程设计转化为对象设计 368Decompose Conditional 分解条件式 238Duplicate Observe Data复制被监视数据 189Encapsulate Collection 封装集群 208Encapsulate Downcast 封装向下转型动作 308Encapsulate Filed 封装值域 206Extract Class提炼类 149Extract Hierarchy提炼集成体系 375Extract Interface 提炼接口 341Extract Method提炼函数 110Extract Subclass提炼子类 330 Extract SuperClass 提炼超类 336Form Template Method 塑造末班函数 345Hide Delegate隐藏委托关系 157Hide Method 隐藏函数 303Inline Class将类内联化 154Inline Method将函数内联化 117Inline Temp將临时变量内联化 119Introduce Assertion 引入断言 267Introduce Explaining Variables 引入解释型变量 124Introduce Foreign Method引入外加函数 162Introduce Local Extension 引入本地扩展 164Introduce Null Object引入空对象 260Introduce Parameter Obuject 引入参数对象 295Move Filed 搬移值域146Move Method 搬移函数 142Parametrize Method令函数携带参数 283Preserve Whole Object保持对象完整 288Pull Up Constructor Body 构造函数本体上移 325Pull Up Filed 值域上移 320Pull Up Method 函数上拉 322Push Down Filed 值域下移 329Push Down Method函数下移 328Remove Assignments to Parameters 移除对参数的赋值操作 131Remove Control Flag 移除控制标记 245Remove Middel Man 移除中间人 160Remove parameter 移除参数 277Remove setting Method 移除设值函数 300Rename Method 重新命名函数 273Replace Array With Object 以对象代替数组 186Replace Conditional with Polymorpism 一多态替代条件式 255Replace Construntor with Factory Method 以工厂方法取代构造函数 304Replace with Value with Object 以对象取代数据值 175Replace Delegate with Inheritance 以继承取代委托 355 Replace Error Code with Exception 以异常取代错误码 310Replace Exception with Test 以测试 取代异常Replace Inheritance with Delegation 以委托取代集成Replace Magic Number with Symbolic Constant 以字面长脸取代魔法数 204Replace Method with Method Object 以函数对象取代函数 135Replace Nested Conditional with Guard Clauses 以卫语句取代嵌套语句 250Replace Parameter wiht Explict Methods 以明确函数取代参数 285Replace Parameter with Method 以函数取代参数 292Replace record with Data Class 以数据类取代记录217Replace subclass with fileds 以值域取代子类232Replace Temp with QUery 以查询式取代临时变量120Replace Type Code with Class 以类取代型别码 218Replace Type Code with state/strategy 以state/strategy取代型别码 227Replace Type Code with subclass 以子类取代型别码 223Self Encapsulate Filed 自封装值域171Separate Domain from Presentation 将领域和表述,显示分离 370Separate Query from Modifier将查询函数和修改函数分离 279Split Temporary variables剖解临时变量 128Substitute Algorithm替换你的算法 139Tease Apart Inheritance 梳理并分解继承体系 362
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: