重构列表

  • extract method(提炼函数对象)
  • inline method(内联函数)
  • inline temp(内联临时变量)
  • replace tempwith query(查询替代临时变量)
  • introduce explain variable(引入解释变量)
  • split temporary variable(分解临时变量)
  • remove assignments to variable(移除对参数的赋值)
  • replace method with method object(使用函数对象替换函数)
  •  substitute algorithm(替换算法)
  • move method(移动方法)
  • move field(移动字段)
  • extract class(提炼类)
  • inline class(将类内联)
  • hide delegate(有藏委托)
  • remove middle man(移除中间人)
  • iintroduce foreign method(引入外部函数)
  • introduce local extention(引入本地扩展)
  • self encapsulate field (封装字段)
  • replace data value with object(以对象取代数据值)
  • change value to  reference (值变为引用对象)
  • change reference to value (引用对象变为值对象)
  • replace array with object(以对象取代数组)
  • replace record with data class(使用数据对象替代记录)
  • 以卫语句替代条件表达式

 

posted @ 2019-07-11 15:12  炒鸡  阅读(195)  评论(0)    收藏  举报