特别是对于数据格式验证代码,我们认为处理它的最佳方法是使它接近客户机,这样可以使处理开销保持最少。
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.
改进数据格式验证过程的第一步是将所有的验证逻辑都移至一个助手类中,其它方法可以按需从这个类上调用验证逻辑。
The first step to improving our data-format validation procedure is to move all the validation logic into a single helper class, from which other methods can invoke it as needed.
这将把我们带到该工具,并允许我们利用几个选项验证报告格式没有更改。
This takes us to the tool and allows us several options to validate that the reports format has not changed.
应用推荐