同样,这里的注释代码也很有趣。
注释代码的目的有利于代码理解和扩展。
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.
最后,得到带有代码和注释的最终版本。
And finally we have the last version, with code and 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.
代码中的注释可以指导您进行更改。
Comments in the code will help guide you through the changes.
代码注释的引入在一定程度上减轻了此依赖性,但并未完全消除。
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插件带有一条代码注释。
代码风格与注释和XML的比较。
GCov代码覆盖显示和注释。
pl包含本文提到脚本的最后版本,带有代码和注释。
Reverser.pl contains the final version of the script mentioned in this article, with code and comments.
如果使用Doxygen,代码注释就会更简洁,省去了嵌入的HTML标记,如清单5所示。
When you use Doxygen, code comments are much more terse, without the embedded HTML, as demonstrated in Listing 5.
为了简化起见,本文省略了代码中的详细注释。
For simplicity, this article doesn't show detailed comments in the code.
应用推荐