重新组织函数

提炼函数(extract method)

 

内联函数(inline method)

 

内联临时变量(inline temp)

 

以查询取代临时变量(replace temp with query)

 

引入解释性变量(introduce explaining variable)

 

分解临时变量(split temporary variable)

 

移除对参数的赋值(remove assignments to parameters)

 

以函数对象取代函数(replace method with method object)

 

替换算法(substitute algorithm)

posted @ 2015-12-16 11:34  ~huiChen~  阅读(111)  评论(0)    收藏  举报