在单元测试中捕获代码注释。
这里会分享一些有关代码注释的想法。
I thought I'd just share some off-the-cuff thoughts about code commenting.
以上就是我对代码注释的一些初略想法。
需要为控件声明编写XML代码注释时。
When you want to write XML code comments for the declaration of the control.
清单3中的源代码注释将功能分为几个步骤。
Comments in the source code in Listing 3 break the functionality into several steps.
任务标记允许您在代码注释中给您自己或其他人留下说明。
Task tags let you leave notes to yourself or to other developers in code comments.
可以在源代码注释中记录这些修改(参见下载)。
You will document this in the source commentary (see Download).
代码注释的引入在一定程度上减轻了此依赖性,但并未完全消除。
The introduction of code annotations alleviates this dependence to some extent, but not completely.
我曾经引以为豪的代码注释,因过度注释而有人指责。
I've been accused of over-commenting my code and that's something I'm proud of.
屏幕截图显示Eclipse中的Jupiter插件带有一条代码注释。
在提取中还应该使用代码注释,从而详细说明要实现的方法的具体思想或行为。
Code comments should also be used in the abstractions to detail specific ideas or behavior for a method to implement.
有时候我会对代码注释有些疑问,自然而然的对于这些疑问我有些明确的看法。
I am sometimes asked about my position on code comments, and, like most things, I have strong opinions about it. Two kinds of comments exist.
例如,我们允许使用源代码注释,其中包括标准的JSR- 250注入注释。
For example, we allow the use of source code annotations, including the standard JSR-250 injection annotations.
有一个很有帮助的经验法则,您可以说非代码注释行超过100行的方法是长方法。
For a helpful rule of thumb, you could say that a method with more than 100 non-commenting lines of code is way too long.
不要把应删掉的代码注释掉了事我知道有些人重写提交代码的时候,把旧代码注释掉。
Don't comment out code you mean to delete. I have known people to comment out blocks of code they were rewriting and check them in commented out.
不要把代码注释里的to - do列表留下,尤其是你需要提交代码到客户端的时候。
Don't leave to-do lists within your code comments, especially if you're delivering code to the client.
很多时候,它只是需取消 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.
确切的答案可以在源代码中找到在这里并至少有一些源代码注释描述这意味着什么。
The exact answer can be found in the source here and there is at least some source code comments describing what it means.
如果使用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).
一些人声称公正的代码注释是好事情,而另一些人声称代码注释只是解释过于复杂的代码的一种机制。
Some claim judicious code commenting is a good thing, while others claim it only serves as a mechanism to explain overly complex code.
来自被转换的HOOD模型中的各种文档域,以及被选取的代码注释,随后在事后处理阶段被导入到模型中。
The various documentation fields from the converted HOOD model, as well as the extracted code annotations, were then imported into the model during a post-processing phase.
代码注释器外接程序可以利用可自定义模板,将注释和头自动添加到过程中,从而创建注释良好的代码。
Use the code Commenter Add-in to create well-commented code by automatically adding comments and headers to procedures using customizable templates.
有代码注释和浏览,有生成小代码段和执行复杂的查找替换操作。一切在你写代码时需要了解的事情都可以在这一章里找到。
From code comments and code navigation to generating code snippets and performing complex find-and-replace searches, this chapter covers all you need to know while you write code.
最后,我处理发货费用,正如我所做的,我可以把代码注释也顺便删掉了,因为代码已经能够清晰的说明一切了。
Finally, I finish with the shipping. As I do that, I can remove the comment, too, because now it doesn't say anything the code doesn't say.
“提取方法”将代码注释所标记的代码区域提取到其自己的方法中,然后执行重构后的代码,则将向控制台输出10。
Extract method to extract the region of code that is marked by code comments into its own method and then execute the refactored code, then 10 will be printed to the console.
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".
同样,将清单5所示的代码行添加到目前为止仍然空着的脚本标记,代码注释为your Dojo - basedapplicationcodegoeshere。
Also, add the lines shown in Listing 5 to the so-far empty script tag with the your Dojo-based application code goes here code comment.
同样,将清单5所示的代码行添加到目前为止仍然空着的脚本标记,代码注释为your Dojo - basedapplicationcodegoeshere。
Also, add the lines shown in Listing 5 to the so-far empty script tag with the your Dojo-based application code goes here code comment.
应用推荐