Five Lnes of Code
简要内容1 简介
2 了解重构;什么、为什么和为什么现在?
第 1 部分:通过重构计算机游戏来学习
3 使用函数,分解长函数
4 使用对象来消除复杂的 if 语句
5 统一代码以简化和实现重用
6 封装,本地化不变量
第 2 部分:将您学到的知识带入现实世界
7 使用编译器
8 避免评论
9 爱删码
10 永远不要害怕添加代码
11 避免优化和通用性
12 遵循代码中的结构
13 糟糕的代码应该看起来很糟糕
14 总结
(brief contents
1 Introduction
2 Getting to Know Refactoring; the What, Why, and Why Now?
PART 1: LEARN BY REFACTORING A COMPUTER GAME
3 Using Functions, to Break Up Long Functions
4 Using Objects, to Eliminate Complex if Statements
5 Unifying code to simplify and enable reuse
6 Encapsulate, to Localize Invariants
PART 2: TAKING WHAT YOU HAVE LEARNED INTO THE REAL WORLD
7 Work With the Compiler
8 Avoid Comments
9 Love Deleting Code
10 Never be Afraid to Add Code
11 Avoid Optimizations and Generality
12 Follow the Structure in the Code
13 Bad Code Should Look Bad
14 Wrapping Up)
页:
[1]