There is a lot of repeated code here.
在这里有许多重复的代码。
Each block of repeated code increases the chances of introducing an error into the logic.
每一块重复的代码都使得程序逻辑中出现错误的几率增加。
With all that repeated code, you're bound to have inconsistencies, and it will be hard to maintain.
对于所有重复的代码,一定会出现不一致性,因此将很难进行维护。
A simple implementation of notification subscriber (omitting repeated code) is presented in Listing 5.
清单5给出了通知订阅器的一个非常简单的实现(删除了重复代码)。
A very simple implementation of notification consumer (omitting repeated code) is presented in Listing 2.
清单2给出了通知使用者的一个非常简单的实现(删除了重复代码)。
A very simple implementation of a notification subscriber (omitting repeated code) is presented in Listing 3.
清单3给出了通知订阅器的一个非常简单的实现(删除了重复代码)。
A very simple implementation of a notification subscriber (omitting repeated code) is presented in Listing 3.
清单3给出了通知订阅器的一个非常简单的实现(删除了重复代码)。
应用推荐