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

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.

主站蜘蛛池模板: 怀集县| 盐源县| 乌拉特中旗| 增城市| 舞钢市| 黄大仙区| 独山县| 确山县| 卢氏县| 永仁县| 沁阳市| 南通市| 赞皇县| 梧州市| 怀宁县| 贡觉县| 滨州市| 周至县| 樟树市| 波密县| 宜州市| 台中市| 灌南县| 丹阳市| 渑池县| 崇左市| 资兴市| 太白县| 新营市| 衡水市| 彩票| 抚州市| 溆浦县| 信宜市| 阜南县| 汶上县| 隆尧县| 黑水县| 邵阳市| 霞浦县| 湟中县|