你的位置: 码友网首页 / 资讯源列表 / Best practices for writing code comments

关于[Best practices for writing code comments]的摘要:

While there are many resources to help programmers write better code—such as books and static analyzers—there are few for writing better comments. While it's easy to measure the quantity of comments in a program, it's hard to measure the quality, and the two are not necessarily correlated. A bad comment is worse than no comment at all. Here are some rules to help you achieve a happy medium.

原文地址: https://stackoverflow.blog/2021/07/05/best-practices-for-writing-code-comments/

收录时间: 2021-08-09 浏览量: 979 分类: 程序人生

| 0 收藏 | 0