...这里有5 个基本的区域可以使用 注释: 只有一行的代码,代码段,数据结构,函数,单元和工程 只有一行的代码 (Individual lines) 如果你希望写出好的注释(这正是我们的目的所在,不是吗?),那么你在只有 一行的代码中只能使用两种注释。
基于16个网页-相关网页
注意,上面显示的代码实际上只有一行。
Note that the code shown above is actually only a single line.
但反过来说,评审代码所花的时间不得低于五分钟,就算代码只有一行也是如此。
On the flip side, you should always spend at least five minutes reviewing code, even if it's just one line.
为只有一行代码的标记编写测试看起来似乎有些过分,但是很多时候问题的源头正是这一行代码。
Writing a test for a simple one-line tag might seem excessive, but you'd be surprised how many times the one-liners end up being the source of trouble.
应用推荐