因此,类型提示使得代码更安全。
由于提示位于循环体之前,因此这段代码将使提示对于循环的每次迭代都保持活动状态,不过它只使用了一个周期。
Because the hint is before the loop body, this code leaves your hint active for every iteration of the loop, but it only has to use one cycle.
或许仅仅阅读本文即可满足您的需求,但如果想下载代码并在自己的计算机上运行(或许还想略加修改),则以下提示可能会有所帮助。
Perhaps you have been content just to read along, but if you wanted to download the code and get this running on your machine, and perhaps tinker with it, the following tips may help.
对于那些想要继续的人,可以在提示符中分别输入代码清单中的每行代码。
For those who want to follow along, you may type each line of code in the code listings individually at the prompt.
这一章中涉及到一些能让你更快捷地编写和浏览代码的提示和技巧。
This chapter covers some of the tips and tricks you can use to write and navigate through your code much more quickly than before.
代码中使用提示的最佳地方是循环之前。
The best place to use a hint in your code is before the loop.
TDD要求您反过来做:先编写测试,并让它来提示如何编写可以让测试通过的代码。
TDD requires that you do the opposite: write the test first and allow it to inform how you write the code that makes the test pass.
如果运行BasicAuthentication,就意味着提示用户输入用户名和密码,HTML代码会提交在两个预定义的表单字段中输入的凭证。
If running Basic Authentication, that means a user is prompted to enter username and password, the HTML code will submit the credentials entered in two predefined FORM fields.
在HMC的命令行输入installios来调用安装向导,您可以在该向导中通过回答提示来安装VIOServer代码。
Enter installios on the HMC's command line to invoke the installios wizard where you can install the VIO Server code by answering the prompts.
在SourceMate 1.1中,我们为所有这些元数据标签及其属性与值提供了代码提示功能。
With SourceMate 1.1, we provide code hinting for all these metadata tags, their attributes, and values.
用户只需将该配置文件导入到SourceMate中就可以获得这些框架的元数据代码提示与验证功能。
Once a user just imports that file into SourceMate, they get metadata code hinting (and validation) on those framework tags as well.
SourceMate的一个特性就是为标准的Flex元数据标签(如[embed]和[Bindable])提供代码提示(如内容辅助等)。
One of SourceMate's many features is providing code hints (i.e. content assist) for standard Flex metadata tags like [Embed] or [Bindable].
元数据代码提示不仅仅只能用于Potomac框架。
The metadata code hinting isn't just limited to our Potomac framework.
注意该提示的一些部分将应用于引入定制代码中所使用的任何外部库。
Note that some of this tip applies to including any external library for use in custom code. Recommendations
代码中有个简单的表单,提示用户输入在Twitter中搜索的关键词。
This code has a simple form that prompts the user to enter a keyword to search on Twitter.
内联注释,通常环绕在代码周围,用于开发者为其他开发者给出提示。
In-line comments, generally scattered around the code to indicate a note from developer to developer.
SQLServer最佳实践分析器是专门为开发人员提示实践方面的问题的一个代码分析器。
The SQL Server Best practices Analyzer is a code analysis tool specifically written to warn developers about questionable practices.
因为ClearCase允许不发生改变时检入版本,因此检入代码时会提示Checkinevenifidentical(图12)。
While checking in code, be aware of the option check in even if identical (Figure 12) because ClearCase allows you to check in versions even when no changes are made.
阅读提示:Q-telecom(无线移动网络代码:202-09)希腊第四大电信商。
Q-telecom (mobile network code: 202-09) is the fourth player in mobile telephony in Greece.
首先您验证该代码的工具提示是Togglefullscreenview(位于GIMP的view菜单上)。
First you verify that the tooltip for it is Toggle fullscreen view (on GIMP's view menu).
提示:需要使用多个模式匹配代码块(本文的代码下载中包含了一个解决方案—但是建议您在查看之前首先自己进行尝试)。
Hint: multiple pattern-matching blocks may be necessary. (This article's code download includes one solution - but I hope you'll try it yourself before peeking.)
下一代码段在提示框中显示每个回复文档的主题,以便于用户选择任何组合。
This next code snippet displays the subject of each response document in a prompt box for the user to select any combination.
通过尝试使用测试脚本或者在代码归档中查找,您可以查看如何按关键字检索单独提示或者多个提示。
You can see how to retrieve individual notes, or notes by keyword, by trying out the test script or looking in the code archive.
清单1显示了这个工具提示的代码。
GWT开发文档提示说必须慎重使用JSNI,因为不能保证浏览器的可移植性,而且编译代码的优化是有限制的。
The GWT development documentation warns that JSNI must be used with discretion because browser portability isn't guaranteed, and the compiled code optimization is restrictive.
阅读源代码以查看所有可能的用户提示及其显示的内容,通常没有简单地运行程序看它做些什么来的直观。
Reading the source code to see every possible prompt to the user and the scenarios it displays is usually less functional than simply running the program to see what it does.
清单2显示了该工具提示内容的代码。
如果一个团队的领导将电子邮件当作提示参加代码评审会的通知,会怎么样?
What if a team leader depends on E-mail as the notification that it is time to do a code review?
如果一个团队的领导将电子邮件当作提示参加代码评审会的通知,会怎么样?
What if a team leader depends on E-mail as the notification that it is time to do a code review?
应用推荐