zoukankan      html  css  js  c++  java
  • 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++++++++++++++++++++++++++++++++

  • 相关阅读:
    Leetcode#104 Maximum Depth of Binary Tree
    Leetcode#102 Binary Tree Level Order Traversal
    js 实时显示字数
    js获取链接参数
    DIV+CSS左右列高度自适应问题
    css 背景透明,文字不透明
    css position的值
    从头搭建vue项目
    vuejs怎么在服务器部署?
    windows下nginx安装、配置与使用
  • 原文地址:https://www.cnblogs.com/parsifal/p/2094065.html
Copyright © 2011-2022 走看看