要是代码不多的话,进展的速度会很快,要是每一次提交都审核的话耽误不起。
If there isn't much code, it evolves quickly, and can't afford the delay introduced by reviewing every checkin.
随便说一句,所有这些任务需要的代码并不多,但是需要更多的解释,这是比较优雅的编程方式。
Incidentally, all of this takes longer to explain than to do in code, which indicates some fairly elegant programming.
另一方面,如果测试代码要进行对象分配工作(差不多所有的代码都要这样),那么垃圾收集器也肯定会运行。
On the other hand, if the test code does any object allocation at all (and nearly all code does), it's going to create garbage, and eventually, the garbage collector is going to have to run.
应用推荐