Companies that were doing mainframe IT development in the 1960s are still running core systems based on that original logic.
年代做主机IT开发的公司仍旧在原始的逻辑上运行核心系统。
This process is of Paramount importance, because future maintainers of your code are bound to tamper with the original logic at some point, and the unit tests will fail the moment something breaks.
这个过程极其重要,因为代码以后的维护者可能会破坏原来的逻辑,这时单元测试就会失败。
The code in Listing 8 does the same thing as the original code, but the logic for handling states has been put into one object for each state.
清单8中的代码完成的工作与初始代码相同,但是用于处理状态的逻辑已经被放入每个状态的一个对象中。
应用推荐