能标记潜在错误的代码验证系统。
直到您使用代码验证了架构,您才能确实地知道它能工作。
It's not until you prove that architecture with code that you actually know that it will work.
其他验证方法,如Schematron,可以作为验证层进行代码验证。
Other validation methods such as Schematron can be used as the validation layer for validating codes.
executeQuery方法中的代码验证数据库连接是否存在,并执行查询。
The code in the executeQuery method verifies that a database connection exists and executes our query. Here's the data access code
不幸的是,抽象是有漏洞的:例如,在我的ZIP代码验证器中,本想使用正则表达式执行检测。
Unfortunately, the abstraction is leaky: in my ZIP code validator, for example, I would have liked to use regular expressions to perform the check.
第二个闭包(在几个进行代码验证的assert 之后出现)对指定的String应用正则表达式。
The second closure (which comes in after a few asserts for code validation) applies regular expressions to a given String.
从另一方面讲,OVal很容易使用,对约束条件也有很大的选择余地,若想要花少量力气就可向代码添加验证约束条件,它无疑是个上佳之选。
On the other hand, OVal's ease of use and wide selection of constraints make it a viable option for adding validation constraints to code with little effort.
代码3:验证FTP自动下线功能。
代码5:验证telnet自动下线功能。
代码6:验证ssh自动下线功能。
它没有引入可重用的验证代码。
同样,清单10中的代码允许验证以下实例。
Again, the code in Listing 10 allows the following instance to validate.
您甚至可能同意验证代码不属于视图层的说法。
You may even agree with the argument that validation code doesn't belong in the view layer.
该特性可以验证响应代码,以及与响应相关的内容。
This feature can verify the response codes and the content associated with responses.
此代码经过验证,能在不用修改的情况下在gcc -3.4.4和cl - 13.10.3077上成功编译。
The code is verified to compile on both gcc-3.4.4 and cl-13.10.3077 without modification.
添加验证代码可以帮助您更迅速地捕获可访问性错误,而不必检查整个报告。
Adding validation code could assist you in catching accessibility errors more quickly, without having to examine an entire report.
与紧密耦合方法不同,使用动态代理给您带来了可以重用、可以配置的验证代码。
Unlike a tightly coupled approach, using dynamic proxies leaves you with validation code that is reusable and configurable.
比如,详细设计可以包括原型的创建和其他一些代码开发以验证设计的假设,减少性能风险等等。
For example, detailed design can involve the creation of prototypes and other code development in order to verify design assumptions, mitigate performance risks, and so on.
既然已经创建了JSP,现在就让我们在Portlet中编写代码以验证用户ID和密码,并显示适当的消息。
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.
这通常能简化框架、客户端、服务器代码对签名的验证。
This makes it easier for frameworks and client and server code in general to handle signature verification.
或者您可以将所有验证代码移入到服务层,然后从应当是该知识所有者的域类中删除它吗?
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?
但是,如果架构坚持执行验证的代码必须来自一个服务层,那么会发生什么呢?
But what happens when the architecture insists that the code that performs the validation must come from a services tier?
虽然不理想,但是紧密耦合的验证代码相当普遍,特别是在比较老的应用程序里。
Although not ideal, tightly coupled validation code is quite common, particularly in older applications.
除了每个实现类,Castor还生成描述符(descriptor)类,该类包含绑定和验证代码。
Along with each implementation class, Castor also generates a descriptor class that contains the binding and validation code.
试图在编译阶段验证动态代码会使你陷入停机问题的漩涡。
To try to verify dynamic code at compile time would likely walk you straight into the halting problem just like it would for many kinds of tooling.
实际上,无需离开浏览器,您就能够验证代码对httpd执行的操作!
In fact, you'll be able to verify the operations your code is having on HTTPD without leaving your browser!
即使适当地采取了这些安全性措施,也并非所有通过字节码验证的代码都被允许运行。
Even with these security measures in place, not all code that passes bytecode verification should be allowed to run.
原来的JAXB代码无条件地验证文档的结构,如果发现错误,则抛出异常并中止处理。
The original JAXB code unconditionally verified the structure of documents, throwing an exception and aborting the processing if an error was found.
特别是对于数据格式验证代码,我们认为处理它的最佳方法是使它接近客户机,这样可以使处理开销保持最少。
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.
切换到JSPSource页签,并验证代码(也可以参见图 37中的屏幕输出
Switch to the JSP Source tab and verify the code (also see the screen output in Figure 37)
应用推荐