注释代码的目的有利于代码理解和扩展。
Documenting the purpose of your code makes its intent easier to understand and extend.
请看附件,包含了一些笔记和注释代码。
See attached. File contains some notes and the code is commented.
我们自然会制作一份完善的开发用文档,尽可能多的注释代码。
We'll definitely try to build a solid developer documentation, and to comment the code as much as possible.
别为烂代码写注释——直接把它重写。
保留这些注释仍然是个不错的做法;可以使代码更易于维护。
It's still good practice to put the annotation in there; it makes the code more maintainable.
毫无疑问,你已经千百次地被告知,在编写代码时一定要添加注释。
I'm sure you have been told a number of times that you should write comments in your code.
学会使用良好的名称和更短的方法,在不提供注释说明其用途的情况下提高代码的可读性。
Develop the habit of using good naming and smaller methods and structures to make your code more readable without having to comment what it does.
这些注释不是代码之中的评论,而只是给其他评审者看的评论。
These notes are not comments in the code, but rather comments given to other reviewers.
如果您曾经遇到过带有此类注释的代码,这种情况并不少见。
You're not alone if you've ever come across a chunk of code with a comment like this one.
如果不要求Guice构建FrogMan,这个注释对代码行为就没有任何影响。
If you don't ask Guice to create FrogMan, the annotation has no effect on the code's behavior.
任务标记允许您在代码注释中给您自己或其他人留下说明。
Task tags let you leave notes to yourself or to other developers in code comments.
注意清单1缺乏事务管理(没有编程序或声明式事务注释或代码)。
Notice in Listing 1 the lack of transaction management (no programmatic or declarative transaction annotations or code).
事实上,这个算法出现在该代码的注释中。
清单7的注释帮助您了解代码如何获得结果。
The comments in Listing 7 help you to see how the code arrives at the result.
代码注释的引入在一定程度上减轻了此依赖性,但并未完全消除。
The introduction of code annotations alleviates this dependence to some extent, but not completely.
文法的程序规则返回散列引用,其中包含作为文本的代码、注释和字符串。
The grammar's program rule returns a hash reference with the code, comments, and strings available inside it as text.
在提取中还应该使用代码注释,从而详细说明要实现的方法的具体思想或行为。
Code comments should also be used in the abstractions to detail specific ideas or behavior for a method to implement.
屏幕截图显示Eclipse中的Jupiter插件带有一条代码注释。
GCov代码覆盖显示和注释。
为了简化起见,本文省略了代码中的详细注释。
For simplicity, this article doesn't show detailed comments in the code.
如果使用Doxygen,代码注释就会更简洁,省去了嵌入的HTML标记,如清单5所示。
When you use Doxygen, code comments are much more terse, without the embedded HTML, as demonstrated in Listing 5.
譬如,如果你把这个XML摘要注释加到你的代码里去的话。
For example, if you added this XML summary comment to your code.
通过将清单2中的代码注释掉,可以确保验证标志始终为false(也可以将其全部删除)。
By commenting out the code shown in Listing 2, you can be assured that the validate flag will always be false (you can remove it altogether, as an option).
业务客户也不需要在附加到方法上的注释改变时修改其代码。
Business clients also need not modify their code when annotations attached to the method change.
代码归档包含了许多注释,可以帮助说明整个过程。
The code archive contains a number of comments to help elucidate this whole process.
添加特定协议元素、事务、循环、注释、条件处理和定制代码。
Add protocol-specific elements, transactions, a loop, a comment, conditional processing, and custom code.
看一下代码中的注释就会明白转换方法的作用(清单4)。
Take a look at the comments in the code to see what the transform method does (Listing 4).
代码块上的注释指明了在哪里这些操作会被执行。
Comments in the code block above indicate the points at which these actions are performed.
内联注释,通常环绕在代码周围,用于开发者为其他开发者给出提示。
In-line comments, generally scattered around the code to indicate a note from developer to developer.
有了这些简短的描述和代码中的注释,您就能够理解函数中发生了什么事情。
With this brief description and the comments in the code, you should be able to follow what is happening in the function.
应用推荐