If you make this a habit during your testing cycle, you can see if code changes introduce leaks over time that you may not be testing for.
如果您能够在测试周期中将这种方法的使用作为一种习惯,那么您将可以看到,在没有进行测试的时间段内,代码更改是否引入了泄漏。
Even if managers know that a new product will follow this cycle, they cannot be sure when each phase will start and for how long it will last.
即使管理者们知道一个新产品要经历这个周期,他们也无法确定各个阶段将会于何时开始,以及将要持续多长时间。
This pattern can be extended to state flags that can change back and forth, but only if it is acceptable for a transition cycle (from false to true to false) to go undetected.
这种模式可以扩展到来回转换的状态标志,但是只有在转换周期不被察觉的情况下才能扩展(从false到true,再转换到false)。
应用推荐