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

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.

主站蜘蛛池模板: 积石山| 梁平县| 府谷县| 滨州市| 博客| 平武县| 平利县| 福海县| 太白县| 鄂托克旗| 杨浦区| 西峡县| 来凤县| 汶上县| 青阳县| 寿宁县| 阿城市| 肥东县| 梨树县| 阳泉市| 五河县| 龙江县| 乌拉特中旗| 饶阳县| 视频| 剑阁县| 马鞍山市| 巩留县| 象州县| 沧州市| 丰顺县| 青铜峡市| 湖南省| 鄂尔多斯市| 防城港市| 揭东县| 旬阳县| 铁岭县| 惠安县| 海丰县| 东方市|