Code Reading -chap11
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+ Chapter11: A Complete Example
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
265. Model software additions along the lines of similar entities(classes,functions.modules)·
Among similar existing entities,pick one with an unusual name to simplify textual
searches in the base source code.(p.381)
通过附加上类似实体(类,函数,模块)的行去模型化软件。在类似的存在实体中, 拣取一个不常见的名字的实体
来简化在源代码中的文本查询 。
---------------------------------------------------
266. Automatically generated files often start with a comment indicating the fact.(p.397)
自动生成的文件总是以一个提示事实的注释开始。
---------------------------------------------------
267. Any attempt to precisely analyze code will typically branch into numerous other classes,files,
and modules and quickly overwhelm you;therefore,actively try to limit the extent of code you
have to understand to the absolutely necessary minimum.(p.398)
任何期望精确分析代码的企图会典型的导致规模扩大到许许多多其它类,文件,以及模块,并且随之很快的把你吞噬掉;
因此,要积极的试着去限制你必须去了解的代码之范围到最小绝对必须的程度。(译注:一口气吃不成胖子)
---------------------------------------------------
268. Employ a breadth—first search strategy,attacking code—reading problems from multiple sides
until one of them gives way.(p.398)
应用广度优先搜索策略, 从多个角度来 应对代码阅读问题,直到这些角度中的一个被攻克为止。
++++++++++++++++++++++++end of chap11++++++++++++++++++++++++++++++++
完