修改后的建筑师模式是什么? [英] What's the revised builder pattern?

查看:117
本文介绍了修改后的建筑师模式是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解决方案

GoF的原始Builder模式与Joshua Bloch的修改后的GoF Builder模式有什么区别? > GoF模式着重于抽象化构建步骤,以便通过改变构建器可以获得不同的结果,而修订的构建器则针对多个构造函数添加的不必要的复杂性问题。因此,GoF模式更多地涉及抽象,修改后的模式更多是关于简单性(IMO)。



查看 http://en.wikipedia.org/wiki/Builder_pattern http://rwhansen.blogspot.com/2007/07/theres-builder-pattern-that-joshua.html 和应该很清楚。


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.

这篇关于修改后的建筑师模式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆