Writing a test before the code means you don't get to do the fun part of the job until the test runs and fails.
在编写代码前编写测试这种作法意味着,在测试运行并失败之前,不会做工作中真正有趣的部分。
Another part of the research found that writing in general didn't work-it had to be about test-related concerns to trigger the effect.
这项研究的另一部分发现发现,普通的写作不起作用,必须写下跟测试相关的焦虑才能引发这个效果。
When you're writing the actual production code, you want to play the part of a jerk developer who will only do the minimum amount of work possible to make the test pass.
在编写实际的生产代码时,您希望充当一回jerk开发人员的角色,只完成最少量的工作来使测试通过。
应用推荐