重构-改善既有代码的设计——笔记

重构手法 抽取函数(extract method) 抽取类(extract class) 移动函数(move method) 使用查询替代临时变量(replace tem with query) 使用状态模式/策略模式替代类型码(replace type code with state/strategy) 使用多态替代条件判断(replace conditional with polymorphi
相关文章
相关标签/搜索