在单元测试中捕获代码注释。
清单3中的源代码注释将功能分为几个步骤。
Comments in the source code in Listing 3 break the functionality into several steps.
可以在源代码注释中记录这些修改(参见下载)。
You will document this in the source commentary (see Download).
任务标记允许您在代码注释中给您自己或其他人留下说明。
Task tags let you leave notes to yourself or to other developers in code comments.
代码注释的引入在一定程度上减轻了此依赖性,但并未完全消除。
The introduction of code annotations alleviates this dependence to some extent, but not completely.
屏幕截图显示Eclipse中的Jupiter插件带有一条代码注释。
在提取中还应该使用代码注释,从而详细说明要实现的方法的具体思想或行为。
Code comments should also be used in the abstractions to detail specific ideas or behavior for a method to implement.
例如,我们允许使用源代码注释,其中包括标准的JSR- 250注入注释。
For example, we allow the use of source code annotations, including the standard JSR-250 injection annotations.
很多时候,它只是需取消 php.ini文件中的一行代码注释即可启用已编译的模块。
Many times it is just a case of uncommenting a single line in your php.ini file to enable the already compiled module.
如果使用Doxygen,代码注释就会更简洁,省去了嵌入的HTML标记,如清单5所示。
When you use Doxygen, code comments are much more terse, without the embedded HTML, as demonstrated in Listing 5.
通过将清单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).
U ML不能被编译、执行或解释,那它就“只剩文档编制的作用”,而且“对项目来说,除了作为详尽的代码注释外别无他用”。
It can't be compiled, executed, or interpreted, thus being "reduced to the level of mere documentation" and adding "no more value to a project than an elaborate code comment".
别为烂代码写注释——直接把它重写。
毫无疑问,你已经千百次地被告知,在编写代码时一定要添加注释。
I'm sure you have been told a number of times that you should write comments in your code.
保留这些注释仍然是个不错的做法;可以使代码更易于维护。
It's still good practice to put the annotation in there; it makes the code more maintainable.
学会使用良好的名称和更短的方法,在不提供注释说明其用途的情况下提高代码的可读性。
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.
文法的程序规则返回散列引用,其中包含作为文本的代码、注释和字符串。
The grammar's program rule returns a hash reference with the code, comments, and strings available inside it as text.
最后,得到带有代码和注释的最终版本。
And finally we have the last version, with code and comments.
事实上,这个算法出现在该代码的注释中。
同样,这里的注释代码也很有趣。
代码中的注释可以指导您进行更改。
Comments in the code will help guide you through the changes.
pl包含本文提到脚本的最后版本,带有代码和注释。
Reverser.pl contains the final version of the script mentioned in this article, with code and comments.
该注释用于保护代码。
代码风格与注释和XML的比较。
定位这些注释和代码行。
GCov代码覆盖显示和注释。
为了简化起见,本文省略了代码中的详细注释。
For simplicity, this article doesn't show detailed comments in the code.
此文件由40行代码(包括注释)组成,其作用是在窗口的中间显示文本Hello World。
that consists of 40 lines of code, including comments, to display the text Hello World in the middle of the window.
看一下代码中的注释就会明白转换方法的作用(清单4)。
Take a look at the comments in the code to see what the transform method does (Listing 4).
这并非是一个公平的比较,因为在很多地方我保留了C代码作为注释以供参考。
this is not a fair comparison, since in many places I’ve kept the original C code as comments for reference.
应用推荐