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

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.

主站蜘蛛池模板: 贵阳市| 兴仁县| 浠水县| 丁青县| 黔西| 怀来县| 黑山县| 陵川县| 新竹市| 裕民县| 揭东县| 揭阳市| 巢湖市| 嘉善县| 庆阳市| 陆河县| 新密市| 平泉县| 且末县| 麻城市| 阿城市| 镇雄县| 永善县| 榆社县| 鲁甸县| 乡宁县| 林州市| 普宁市| 墨竹工卡县| 永川市| 东丰县| 玛纳斯县| 新郑市| 岳阳市| 五指山市| 阜新| 大同县| 石泉县| 乌鲁木齐县| 瓦房店市| 吉水县|