它没有引入可重用的验证代码。
TDD是为了设计并验证代码。
文本框的验证代码如清单1。
此处显示的代码示例中已删除参数验证代码。
Parameter validation code has been removed from the code sample shown here.
任何身份验证代码都可以在此注入。
您甚至可能同意验证代码不属于视图层的说法。
You may even agree with the argument that validation code doesn't belong in the view layer.
单元测试可验证代码单元的实现是否正确。
Unit tests verify the correct implementation of a unit of code.
使用单元测试验证代码。
您的验证代码很醒目,是因为它看起来不像周围的其他代码。
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.
一个选择就是把验证代码放到“Service”层中。
One option is to place your validation logic in a service layer.
如果使用了文法,您就会陷入自己手工编写大量数据验证代码的泥潭。
If you use the grammar, you could get stuck having to hand code a lot of data validation.
“测试影响视图”窗口,还可以运行测试以验证代码更改。
Test Impact View window, you can also run tests to verify code changes.
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.
只要将所有的客户端验证代码放在有个外部的.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.
应用推荐