8.3搬移语句到函数(MoveStatementsintoFunction)
8.4搬移语句到调⽤者(MoveStatementstoCallers)
8.5以函数调⽤取代内联代码(ReplaceInlineCodewithFunctionCall)
8.6移动语句(SlideStatements)
8.7拆分循环(SplitLoop)
8.8以管道取代循环(ReplaceLoopwithPipeline)
8.9移除死代码(RemoveDeadCode)
第9章重新组织数据
9.1拆分变量(SplitVariable)
9.2字段改名(RenameField)
9.3以查询取代派⽣变量(ReplaceDerivedVariablewithQuery)
9.4将引⽤对象改为值对象(ChangeReferencetoValue)
9.5将值对象改为引⽤对象(ChangeValuetoReference)
第10章简化条件逻辑
10.1分解条件表达式(DecomposeConditional)
10.2合并条件表达式(ConsolidateConditionalExpression)
10.3以卫语句取代嵌套条件表达式(ReplaceNestedConditionalwith
GuardClauses)
10.4以多态取代条件表达式(ReplaceConditionalwithPolymorphism)
10.5引⼊特例(IntroduceSpecialCase)
10.6引⼊断⾔(IntroduceAssertion)
第11章重构API
11.1将查询函数和修改函数分离(SeparateQueryfromModifier)
11.2函数参数化(ParameterizeFunction)
11.3移除标记参数(RemoveFlagArgument)
11.4保持对象完整(PreserveWholeObject)
11.5以查询取代参数(ReplaceParameterwithQuery)
11.6以参数取代查询(ReplaceQuerywithParameter)
11.7移除设值函数(RemoveSettingMethod)
11.8以⼯⼚函数取代构造函数(ReplaceConstructorwithFactory
Function)
11.9以命令取代函数(ReplaceFunctionwithCommand)
11.10以函数取代命令(ReplaceCommandwithFunction)
第12章处理继承关系
评论0
最新资源