It's always better to do the extra work and validate your input than to run unknown and untrustworthy code.
做一些额外的工作并验证您的输入,总比运行未知的和不能信赖的代码要好一些。
Runtime environments provide capabilities that are driven by some unknown user code; that makes it impossible to predict which resources the runtime environment will require in every situation.
运行时环境提供由一些未知用户代码驱动的功能;这使得无法预测运行时环境在各种情况下需要哪些资源。
You explore the internals of the unknown code while writing the tests.
在编写测试的同时您也就熟悉了未知代码的内部构造。
应用推荐