摘要: 1.Move Method(搬移函数)2.Move Field(搬移值域)3.Extract Class(提炼类)4.Inline Class(将类内联化)5.Hide Delegate(隐藏「委托关系」)6.Remove Middle Man(移除中间人)7.Introduce Foreign Method(引入外加函数)8.Introduce Local Extension(引入本地扩展) 阅读全文
posted @ 2011-10-08 10:03 Tim Yi 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 1.Extract Method(提炼函数)2.Inline Method(将函数内联化)3.Inline Temp(将临时变量内联化)4.Replace Temp with Query(以查询取代临时变量)5.Introduce Explaining Variable(引入解释性变量)6.Split Temporary Variable(剖解临时变量)7.Remove Assignments to Parameters(移除对参数的赋值动作)8.Replace Method with Method Object(以函数对象取代函数)9.Substitute Algorithm(替换你的算法) 阅读全文
posted @ 2011-10-08 00:15 Tim Yi 阅读(245) 评论(0) 推荐(0) 编辑