问题描述
GoF的原始Builder模式与Joshua Bloch的修改后的GoF Builder模式有什么区别? > GoF模式着重于抽象化构建步骤,以便通过改变构建器可以获得不同的结果,而修订的构建器则针对多个构造函数添加的不必要的复杂性问题。因此,GoF模式更多地涉及抽象,修改后的模式更多是关于简单性(IMO)。
查看和和应该很清楚。
What is the difference between the original Builder pattern by GoF and the "revised GoF Builder pattern" by Joshua Bloch?
The GoF pattern focuses on abstracting the steps of construction so that by varying the builder you can get different results while the "revised builder" is targeting the problem of unnecessary complexity added by multiple constructors. So the GoF pattern is more about abstraction and the revised patter is more about simplicity (IMO).
Look at the examples in http://en.wikipedia.org/wiki/Builder_pattern and http://rwhansen.blogspot.com/2007/07/theres-builder-pattern-that-joshua.html and it should be quite clear.
这篇关于修改后的建筑师模式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!