Integer time-outs can be hard to use because it is not obvious what the unit of the time-out is, and it is difficult to translate units of time into the commonly used millisecond.
整数超时可能难以使用,这是因为超时的单位是什么不明显,并且很难将时间单位翻译为常用的毫秒。
Translate block comments at the beginning of methods describing what the method does into unit tests.
将位于方法开头、说明该方法所起作用的注释块翻译为单元测试。
Unit tests make it easier to find and resolve problems early which can translate into huge savings over the life of a project.
单元测试使早期发现和解决问题更容易,这可以转化成项目开发时间的大量节省。
应用推荐