这样的对象分类允许垃圾收集器检验更少的对象,使每次垃圾收集速度更快。
Sorting objects like this allows the garbage collector to examine fewer objects, making each garbage collection quicker.
一旦提取了该类之后,我就能通过同时重构函数分类器和质数检验器来使用它。
Once I have extracted this class, I can refactor both the functional classifier and prime-number tester to use it.
可以将测试按照测试代码的多少分类:“单元测试”检验单一组件的功能,比如一个函数或者一个类。
Tests can be categorized according to the amount of code they exercise: a unit test verifies the functionality of a single software component, such as a function or a class.
应用推荐