在这种情况下,您需要了解实现类,因为您必须从被序列化的证书信息中构建它的实例。
In this case you need to know the implementation class because you have to construct an instance of it from the information in the serialized certificate.
这意味着您需要知道您要使用您的测试脚本多长时间,以完全了解实现模块化的成本。
This means you need to understand how long you will be using your test scripts to fully understand the costs of implementing modularity.
一般情况下在使用高级抽象,比如函数编程时,您不需要了解实现细节,但这并不意味这在必要的情况下,就无法了解。
Just because you usually surrender knowledge of implementation details when using higher-level abstractions like functional programming doesn't mean that you can't get down and dirty if you must.
应用推荐