通过使用已经建立的模式,您将从通用的设计结构中获益,从而允许团队的其他开发人员了解代码的意图。
By using established patterns, you benefit from common design constructs that allow other developers on a team to understand your code's purpose.
尽管这个简单的模式对于我们现在的意图来说已经很好了,但是还可以让它更高效。
Though this simple schema is good enough for the present purpose, it could be made more efficient.
状态模式类似于命令模式,但是意图截然不同。
The state pattern is a similar to the command pattern, but the intent is quite different.
应用推荐