分析代码有方法

Table of Contents
  • 类图 UML class diagram
  • 流程图 flow chat by graphviz
  • 时序图 sequence diagram by websequence
  1. 表格

    • 类责任与协作者表格 CRC table
    • Class
    • Responsiblity
    • Collaborators
  2. 伪代码
    核心算法最好用简化的伪代码来表示, 其实用化简过的 python 代码以 juypter notebook 形式阐述更好

  3. 示意图
    用方框, 箭头, 圆圈加上注释可以将大多数概念性的交互都能大致说清楚

  4. 讲故事
    作为什么角色, 想达成什么目标, 所以要做什么事, 能用暗喻, 类比以及引人入胜的故事把技术问题说明白,这是更高的境界, 融会贯通之后才能深入浅出

Comments |0|

Legend *) Required fields are marked
**) You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
Category: Uncategorized