否则,内联注释的出现表明你写的代码需要解释说明,意味着这些代码需要被重构。
Otherwise, the presence of inline comments indicates that you've written code that needs explanation, meaning that it cries out for refactoring.
用Ruby写代码分析、重构工具和自动重构、格式程序等等甚至更多的工具并非不可能,但是很困难,因为还没有用Ruby代码分析Ruby源码的先例。
Code analyzers, refactoring tools and automated refactorings, formatters and more, are difficult, if not impossible, to write in Ruby, because there is no way to parse Ruby source with Ruby code.
每个周期内的典型任务包括写测试、让代码通过测试、重构代码、提交修改。
Typical tasks in his cycles are writing a test, code to pass the test, refactor the code, commit the changes.
假使项目中的每一个人都在周而复始地重复“写测试,修改代码,重构”,当然有必要使你的测试工作更加有效。
Given that everyone on the team will be going through the "write a test, fix the code, refactor" cycle frequently, it's essential that you can both write and run tests efficiently.
我们在做任何事情时(无论是写测试、写产品代码还是重构),都要保证系统能够一直运行。
In everything we do, whether writing tests, writing production code, or refactoring, we keep the system executing at all times.
比尔:在《重构》这本书中,你写道:“通过写测试,我提高了作为一个程序员的工作效率。”能谈谈对鲁棒性、质量和可靠性的影响么?
Bill Venners: in Refactoring, you write: "I write tests to improve my productivity as a programmer." What about robustness, quality, and reliability?
比尔:在《重构》这本书中,你写道:“通过写测试,我提高了作为一个程序员的工作效率。”能谈谈对鲁棒性、质量和可靠性的影响么?
Bill Venners: in Refactoring, you write: "I write tests to improve my productivity as a programmer." What about robustness, quality, and reliability?
应用推荐