Test cases also serve as adept documentation because they implicitly demonstrate how the code under test works.
测试案例因为暗示了代码在测试工作中是如何工作的,所以还可以充当内行的文档。
Adept refactoring folks will note that I could apply Extract Method as a further refinement to the code.
一些熟悉重构的人可能会说我应该使用ExtractMethod进一步对代码进行优化。
Is anyone adept at scanning the whole code base, looking for pervasive issues or opportunities? Are less expensive tweaks and hacks preferable over doing it right (but expensively) the first time?
有没有人善于浏览整个代码库,发现普遍的问题和机会?更喜欢代价低的调整和删改还是第一次就把事情做好(但是代价高)?
Is anyone adept at scanning the whole code base, looking for pervasive issues or opportunities? Are less expensive tweaks and hacks preferable over doing it right (but expensively) the first time?
有没有人善于浏览整个代码库,发现普遍的问题和机会?更喜欢代价低的调整和删改还是第一次就把事情做好(但是代价高)?
应用推荐