改进数据格式验证过程的第一步是将所有的验证逻辑都移至一个助手类中,其它方法可以按需从这个类上调用验证逻辑。
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.
可以从诸如业务委派等其它类上调用清单 1 中的简单方法,以按需执行验证逻辑。
Note that the simple methods in Listing 1 can be called from other classes, such as our business delegates, to perform validation logic as needed.
我自己的首选是让gcc总是意味着本机编译器,并按需显式调用或配置mingw32 - gcc。
My own preference is to have GCC always mean the native compiler, and I explicitly invoke or configure mingw32-gcc as I need.
应用推荐