重构-改善既有的代码设计-重新组织函数(6-2)

版权声明:不自见故明;不自是故彰;不自伐故有功;不自矜故长; https://blog.csdn.net/LightUpHeaven/article/details/84637081

6.6.分解临时变量(Split Temporary Variable)

6.7.移除对参数的赋值(Remove Assignments to Parameter)

6.8.以函数对象取代函数(Replace Method with Method Object)

6.9.替换算法(Substitute Algorithm)

猜你喜欢

转载自blog.csdn.net/LightUpHeaven/article/details/84637081