官术网_书友最值得收藏!

Standards for code

Code level standards, at the end of the day, are as much about trying to ensure that the code itself is written and structured in a predictable and easily understood manner as anything else. When those standards are followed, and when they are reasonably well understood by the developers who are working with the code base, it's not unreasonable to expect that any developer, even one who may never have seen a given chunk of code, will nevertheless be able to do the following:

  • Read and more easily understand the code and what it's doing 
  • Find a code element (a class, function, constant, or some other item) that may only be identified by name, or in terms of a namespace, quickly and easily
  • Create new code elements in an existing structure that also conform to those standards
  • Modify existing code elements and know what standards-related items need to be modified in concert with those changes (if any)

The Python community has one set of guidelines (PEP-8), but there may well be additional internal standards that are in place as well.

主站蜘蛛池模板: 汶川县| 景洪市| 泰安市| 绵竹市| 金山区| 宁河县| 凤山市| 买车| 红安县| 锡林浩特市| 通河县| 连江县| 鄂温| 岳普湖县| 彰化县| 民丰县| 米脂县| 合水县| 阳高县| 永定县| 开鲁县| 黄陵县| 沙坪坝区| 资阳市| 娱乐| 东莞市| 梅河口市| 沙雅县| 抚远县| 南雄市| 洛扎县| 舟曲县| 梅河口市| 娱乐| 盐边县| 青州市| 青川县| 石屏县| 长岭县| 光泽县| 潍坊市|