它没有引入可重用的验证代码。
您甚至可能同意验证代码不属于视图层的说法。
You may even agree with the argument that validation code doesn't belong in the view layer.
使用单元测试验证代码。
此准则不要求验证代码在公共可见成员中。
This guideline does not require that the validation code be in the publicly visible member.
您的验证代码很醒目,是因为它看起来不像周围的其他代码。
Your validation code sticks out because it doesn't look like the other code around it.
如果没有差异,接入点发送身份验证代码来连接电脑。
If there are no discrepancies, the access point sends an authentication code to the connecting computer.
如果使用了文法,您就会陷入自己手工编写大量数据验证代码的泥潭。
If you use the grammar, you could get stuck having to hand code a lot of data validation.
SSL接收到具有不正确的“消息验证代码”的一个记录。
SSL has received a record with an incorrect Message Authentication Code.
实际上,无需离开浏览器,您就能够验证代码对httpd执行的操作!
In fact, you'll be able to verify the operations your code is having on HTTPD without leaving your browser!
添加验证代码可以帮助您更迅速地捕获可访问性错误,而不必检查整个报告。
Adding validation code could assist you in catching accessibility errors more quickly, without having to examine an entire report.
这就意味着您可以给验证规则编码,速度比自己编写验证代码快得多。
This means you can encode the rules a lot faster than writing the validation code by hand.
与紧密耦合方法不同,使用动态代理给您带来了可以重用、可以配置的验证代码。
Unlike a tightly coupled approach, using dynamic proxies leaves you with validation code that is reusable and configurable.
虽然不理想,但是紧密耦合的验证代码相当普遍,特别是在比较老的应用程序里。
Although not ideal, tightly coupled validation code is quite common, particularly in older applications.
通过添加一些简单的验证代码来继续增强清单3内的php代码,如清单4所示。
Continue adding to the PHP code in Listing 3 by inserting some simple validation code, as in Listing 4.
该窗体上必须至少有两个控件,以便在它们之间切换并由此调用验证代码。
You must have at least two controls on the form in order to TAB between them and thereby invoke the validation code.
我们可以在register方法中添加验证代码,以确定名字字段是否为null。
We could add validation code to the register method to determine whether the first-name field is blank or null.
也许您必须手工编写验证代码来根除这个bug,而不关心非法的日期和非法的数字。
You would have to hand code the validation to root out this bug — not to mention invalid dates and invalid numerics.
可以创建单元测试来验证代码,并检查对代码的更改是否未破坏现有功能。
You can create unit tests to verify your code and check that changes to your code do not break existing functionality.
或者您可以将所有验证代码移入到服务层,然后从应当是该知识所有者的域类中删除它吗?
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?
切换到JSPSource页签,并验证代码(也可以参见图 37中的屏幕输出
Switch to the JSP Source tab and verify the code (also see the screen output in Figure 37)
您为了避免自己手工编写验证代码,可能想让验证器在数据缺失的时候发出警报声。
You want the validator to sound the alarm when this data is missing so you will not have to hand code the validation yourself.
不管哪种情况,主要的好处是验证代码的高层目标(换句话说,正确突出显示标题和结束语)。
In either case, the key benefit is that you are verifying the high-level intent of your code (in other words, that the title and summary are highlighted appropriately).
只要将所有的客户端验证代码放在有个外部的.js文件中,用户就只需要下载这个文件一次。
As long as you place all of your client side validation code in one external.js file, the user only needs to download this file once.
除了每个实现类,Castor还生成描述符(descriptor)类,该类包含绑定和验证代码。
Along with each implementation class, Castor also generates a descriptor class that contains the binding and validation code.
它通过一系列简单的验证选项提供强化身份验证—电话呼叫、短信、移动应用通知或验证代码。
It delivers strong authentication via a range of easy verification options-phone call, text message, mobile app notification or verification code.
作为替代解决方案,我建立一个看起来很像清单2的调用处理程序,而验证代码直接在调用处理程序里运行。
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.
根据所需验证的数量和性质,验证代码可能复杂冗长,而且在越来越多人参与其中后,维护将成为沉重负担。
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.
特别是对于数据格式验证代码,我们认为处理它的最佳方法是使它接近客户机,这样可以使处理开销保持最少。
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.
通过定义好的路径——在当前情况下是运行时——访问内存,核心可以验证代码并没有访问不该访问的内存位置。
By accessing memory through well-defined paths, the runtimes or in this case, kernels can verify that code is not accessing memory locations to which it should not have access.
通过定义好的路径——在当前情况下是运行时——访问内存,核心可以验证代码并没有访问不该访问的内存位置。
By accessing memory through well-defined paths, the runtimes or in this case, kernels can verify that code is not accessing memory locations to which it should not have access.
应用推荐