b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

微服务架构 云计算 重构 -改变既有代码的设计 ---- 笔记

电脑杂谈  发布时间:2018-10-13 16:05:07  来源:网络整理

微服务架构 云计算_微服务架构图_云计算架构图

3. BAD SMELLS IN CODE(代码的坏味道)

1. Duplicated code (重复的代码)

2. Long Method(很长的方法)

3. Large Classes(超级大的类)

4. Long Parameter List(长参数列表)

5. Divergent Change(发散的改变)

6. Shotgun Surgery(散弹修改)

7. Feature Envy(依恋情结)

8. Data Clumps(数据泥团)

9. Primitive Obsession(基本类型偏执)

10. Switch Statements(Switch 惊悚现身)

11. Parallel Inheritance Hierarchies(平行继承类)

12. Lazy Class(冗余类)

13. Speculative Generality(夸夸其谈未来性)

14. Temporary Field(令人迷惑的临时变量)

15. Message Chain(过长的消息链)

16. Middle Man(中间人)

17. Inappropriate Intimacy(不恰当的亲密关系)

18. Alternative Classes with Different Interfaces(异曲同工的类)

19. Incomplete Library Class(不完美的库)

20. Data Class(数据类)

21. Refused Bequest(被拒绝的遗赠)

22. Comments(过多没用的注释)

6. COMPOSING METHODS(重新组织函数))

1. Extract Method(提炼函数)

2. Inline Method (内联函数)

3. Inline Temp (内联临时变量)

4. Replace Temp with Query (以查询取代临时变量)

5. Introduce Explaining Variable (引入解释性变量)

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

7. Remove Assignments to Parameters(移除对参数的赋值)

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

9. Substitute Algorithm (算法替换)

7. Moving features between elements(移动对象)

10. Move method (移动方法)

11. Move field (移动字段)

12. Extract Class (提取类)

13. Inline Class (一致的类)

14. Hide Delegate (隐藏委托)

15. Remove Middle Man (移除中间人)

16. Introduce Foreign Method (引入外加的函数)

17. Introduce Local Extension (引入本地扩展)

8. ORGANIZING DATA (组织数据)

18. Self Encapsulate Field (对字段获取进行封装)

19. Replace Data Value with Object (用对象替换数据值)

20. Change Value to Reference (将值改为引用)

21. Change Reference to Value (将引用改为值)

22. Replace Array with Object (用对象代替数组)


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-89441-1.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    • 卓加
      卓加

      一个连海洋法公约都没签署的国家却天天叫嚷遵守国际法

    • 潘立祥
      潘立祥

      没事多看看军情之类的节目

    • 宋凯瑞
      宋凯瑞

      上台后坚持独立外交

    热点图片
    拼命载入中...