A code validation system that marks potential errors.
能标记潜在错误的代码验证系统。
The ballistic range experiment is conducted for code validation and the sphere model is made of steel.
数值模拟结果与文献结果进行了对比,并在弹道靶中进行了钢质圆球的实验验证。
The second closure (which comes in after a few asserts for code validation) applies regular expressions to a given String.
第二个闭包(在几个进行代码验证的assert 之后出现)对指定的String应用正则表达式。
Or do you move all the validation code into the services tier, removing it from the domain class that should be the owner of that knowledge?
或者您可以将所有验证代码移入到服务层,然后从应当是该知识所有者的域类中删除它吗?
This way you add server-side code to all client-side validation functions in order to check conditions and to show messages.
在这种方法中,您将把服务器端代码添加到所有客户端验证函数中,以检查条件并显示消息。
But what happens when the architecture insists that the code that performs the validation must come from a services tier?
但是,如果架构坚持执行验证的代码必须来自一个服务层,那么会发生什么呢?
Adding validation code could assist you in catching accessibility errors more quickly, without having to examine an entire report.
添加验证代码可以帮助您更迅速地捕获可访问性错误,而不必检查整个报告。
This custom code can perform additional validation of data or process enforcement as required by customer implementations.
此自定义代码可以根据客户实现的需求执行数据或流程的其他验证。
In these cases, instead of adding verification points to the test script, testers must code the validation mechanism.
在这种情况下,测试员不是向测试脚本添加确认点,而是对确认机理编码。
If our validation logic were tied to the business delegates, as it was in the last tip, we would end up with ISBN validation code in both of these methods.
如果将验证逻辑与这两个业务委派(象上一篇技巧文章中的那样)联系在一起,那么最终这两个方法中都会有ISBN验证代码。
Specifically, we decided the best way to deal with data-format validation code was to keep it close to the client, thus keeping the processing overhead to a minimum.
特别是对于数据格式验证代码,我们认为处理它的最佳方法是使它接近客户机,这样可以使处理开销保持最少。
This means you can encode the rules a lot faster than writing the validation code by hand.
这就意味着您可以给验证规则编码,速度比自己编写验证代码快得多。
Analysis, validation, and code correctness tools.
分析、验证和代码更正工具。
Your validation code sticks out because it doesn't look like the other code around it.
您的验证代码很醒目,是因为它看起来不像周围的其他代码。
What if your database has some validation code that requires various fields to be filled before the document can be saved, and will produce all sorts of errors if you try to save before that?
如果数据库具有验证代码,这些代码要求在保存文档之前,各个字段都必须填写完整,并且如果还未填写完整就试图保存文档会产生各种错误,该怎么办?
If you use the grammar, you could get stuck having to hand code a lot of data validation.
如果使用了文法,您就会陷入自己手工编写大量数据验证代码的泥潭。
For an alternative solution, I could have created an invocation handler that looks more like the one from Listing 2, where the validation code is run directly in the invocation handler.
作为替代解决方案,我建立一个看起来很像清单2的调用处理程序,而验证代码直接在调用处理程序里运行。
It also integrates easily with your existing JAXP code, making the addition of schema validation a snap.
它很容易与已有的JAXP代码结合在一起,增加模式验证非常简单。
Although embedding the lists directly in the schema provided easy validation, when a code changed in the list, the schema had to be updated.
虽然将清单直接嵌入到模式中可以简化验证过程,但是当清单中一个代码发生变化时,这个模式就必须更新。
Continue adding to the PHP code in Listing 3 by inserting some simple validation code, as in Listing 4.
通过添加一些简单的验证代码来继续增强清单3内的php代码,如清单4所示。
Unlike a tightly coupled approach, using dynamic proxies leaves you with validation code that is reusable and configurable.
与紧密耦合方法不同,使用动态代理给您带来了可以重用、可以配置的验证代码。
Depending upon the number and nature of the validations required, the validation code can be complex and lengthy and its maintenance can become a significant burden as more partners are added.
根据所需验证的数量和性质,验证代码可能复杂冗长,而且在越来越多人参与其中后,维护将成为沉重负担。
It doesn't introduce any reusable validation code.
它没有引入可重用的验证代码。
The following code shows the validation when putting an object into session attributes.
下面的代码显示了在将对象放入到会话属性时进行的验证工作。
You want the validator to sound the alarm when this data is missing so you will not have to hand code the validation yourself.
您为了避免自己手工编写验证代码,可能想让验证器在数据缺失的时候发出警报声。
The validation code is scattered across multiple source files and is often under-documented.
与验证有关的代码通常散布在多个源文件中,文档也不甚详尽。
Although not ideal, tightly coupled validation code is quite common, particularly in older applications.
虽然不理想,但是紧密耦合的验证代码相当普遍,特别是在比较老的应用程序里。
You may even agree with the argument that validation code doesn't belong in the view layer.
您甚至可能同意验证代码不属于视图层的说法。
To ease source code maintenance, the validation source code should be separated from the source code of the technology domain.
为了改进源代码维护,您应该从技术域中分割确认器源代码。
Listing 2 shows you how to handle the validation phase (with some code omitted for clarity).
清单2显示了如何处理验证阶段(为了保持简洁,省略了一些代码)。
应用推荐