You can also validate code against the layer diagram on every check-in.
您也可以在每次签入时根据图层图表验证程式码。
If I want to validate this code in a white box manner, I have to separate UI-specific code from business code, which requires some refactoring.
如果我想以白盒方式验证这段代码,就必须将特定于用户界面的代码与业务代码分开,这就需要进行重构。
You can examine the coverage analysis data to help you determine which subset of the automation suite needs to be run, allowing you to validate the new code in less time.
这时您就需要检查覆盖率分析的数据,以帮您确定哪些自动化测试的子集需要运行,这样就可以让您在更短的时间内验证新的代码。
It's always better to do the extra work and validate your input than to run unknown and untrustworthy code.
做一些额外的工作并验证您的输入,总比运行未知的和不能信赖的代码要好一些。
In addition, the drive itself can validate the data being written, so that its integrity code matches the data.
此外,驱动器自身可以验证正在写入的数据,以便其完整性代码与数据匹配。
With this approach, you can validate many different kinds of data with a single piece of code.
通过这种方法,就可以用一块代码来验证很多不同类型的数据。
Now, with JAXP 1.3, you can parse, validate, and transform XML without ever writing a line of vendor-specific code.
现在,使用JAXP 1.3可以解析、验证并转换XML,而无需编写一行特定于开发商的代码。
Modify the controller to validate the ZIP code (5 numeric digits).
修改控制器以验证邮政区码(5位数字)。
To produce code that runs faster and is easy to maintain, it makes far more sense to use a hash table that stores the command-line options, then USES the hash to validate the user-specified input.
为了生成运行更加快捷并易于维护的代码,使用散列表存储命令行选项并使用散列验证用户指定的输入,这种方法非常有帮助。
This piece of code is vulnerable to XSS attacks because no check is made to validate the input.
这段代码很容易受xss攻击,因为没有进行任何的输入验证。
Test Implementer: the test Implementer writes the additional test code, runs the tests to validate the solution, then reports errors to the appropriate developer and tests the resulting fixes.
测试实现人员:测试实现人员将编写额外的测试代码,运行测试验证解决方案,然后将错误报告给相应的开发人员,并对修正后的代码进行测试。
A second option would be an integration test, which would allow you to validate the asynchronous functionality of the client-side code.
另外一个选择是集成测试,使您能够验证客户端代码的异步功能。
Two methods validate strings, as the code in Listing 3 shows.
有两个方法验证字符串,如清单3所示。
Still, there will be pieces of the code you can't validate with a DTD or schema.
尽管如此,还有多段代码不能用DTD或模式进行验证。
The generated code is the same kind of code that is used (MS XSD validation APIs) in the XML designer to validate XML documents.
生成的代码和XML设计器验证 XML 文档使用的代码(MSXSD验证API)是同一类。
验证邮政区码。
The final step is to create a new web page with the code to create the form and handle the submit event on the Validate button.
最后一步是用代码创建一个新web页面,来创建表单并处理Validate按钮上的提交事件。
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).
通过将清单2中的代码注释掉,可以确保验证标志始终为false(也可以将其全部删除)。
The code will use the classes to validate if correct Atom has been returned.
该代码将使用这些类来验证是否返回了正确的Atom。
Again, the code in Listing 10 allows the following instance to validate.
同样,清单10中的代码允许验证以下实例。
Now that we've created the JSP, we'll write the code in the portlet to validate the user id and password and display the appropriate message.
既然已经创建了JSP,现在就让我们在Portlet中编写代码以验证用户ID和密码,并显示适当的消息。
Cofelt asks if this is enough - does the agile approach of using a working example to validate ideas always truly outweigh doing some validation with rough sketches before committing to code?
Cofelt质疑时间是否充足:相对于在编码之前以粗略的方式验证某些想法,以可工作的范例来验证想法这种敏捷的方式是否总能胜出?
The smaller the code size of an application, the easier it is to validate and prove that it is bug free.
应用程序的代码越小,就越容易验证和证明它是没有bug 的。
To validate, place the transformation code inside the block of a clause and check the condition as a test statement inside the block.
为了进行验证,将转换代码放入到子句的块中,并检查块中的test语句。
You can write a block of code and immediately validate it by running it in an accurate simulation of a production WebSphere Application Server installation.
您可以编写一段代码并且通过在生产WebSphereApplicationServer安装的正确仿真中立刻验证它。
Listing 2 shows the code that USES the regular expression in Listing 1 to validate the data.
清单2展示了如何使用清单1中的正则表达式来验证数据?
You should take one more step before digging into your code (although this definitely brings things closer to implementation) : Validate your Web page (or pages).
探究代码之前,您还需要执行一个步骤(虽然这无疑更接近实现):验证您的web页面。
The subcategories allow you to validate that your code complies with best practices related to encoding, locale handling, translations, and others.
这些子类让你能够验证你的代码是否遵守和编码、现场处理、翻译和其他相关的全球化最优方法。
This is a tough task for developers, because they will have to write thousands lines of code to validate user input.
对于开发员来说,这是一个艰难的任务,因为他们需要写上千行的代码以识别输入。
The sample code illustrates how you can create an external grammar file, validate the spoken name, and fetch the records that match.
示例代码将展示如何创建一个外部的语法文件、如何确认所说的名称,以及如何取得匹配的记录。
应用推荐