<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Head First Design Pattern Question</title>
	<atom:link href="http://benreichelt.net/blog/2005/05/23/head-first-design-pattern-question/feed/" rel="self" type="application/rss+xml" />
	<link>http://benreichelt.net/blog/2005/05/23/head-first-design-pattern-question/</link>
	<description></description>
	<lastBuildDate>Tue, 18 Aug 2009 22:20:45 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Anonymous</title>
		<link>http://benreichelt.net/blog/2005/05/23/head-first-design-pattern-question/comment-page-1/#comment-338</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 20 Jun 2005 11:43:16 +0000</pubDate>
		<guid isPermaLink="false">http://s194721765.onlinehome.us/blog/2005/05/23/head-first-design-pattern-question/#comment-338</guid>
		<description>You could use a decorator pattern to encapsulate the pizza toppings if you wanted to.

The point of the factory is that the assembling of the class is encapsulated by the factory, so you could swap one factory for another.</description>
		<content:encoded><![CDATA[<p>You could use a decorator pattern to encapsulate the pizza toppings if you wanted to.</p>
<p>The point of the factory is that the assembling of the class is encapsulated by the factory, so you could swap one factory for another.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: darrell</title>
		<link>http://benreichelt.net/blog/2005/05/23/head-first-design-pattern-question/comment-page-1/#comment-337</link>
		<dc:creator>darrell</dc:creator>
		<pubDate>Tue, 24 May 2005 07:45:53 +0000</pubDate>
		<guid isPermaLink="false">http://s194721765.onlinehome.us/blog/2005/05/23/head-first-design-pattern-question/#comment-337</guid>
		<description>I think Thomas is right about the &quot;last-resort&quot; thing. Decorator ends up having tons of wrappers, and in their example you&#039;d have to do a lot of work to re-order the coffee decorators to say &quot;double-mocha&quot; whereas if you had developed it differently, double-mocha is easy.</description>
		<content:encoded><![CDATA[<p>I think Thomas is right about the &#8220;last-resort&#8221; thing. Decorator ends up having tons of wrappers, and in their example you&#8217;d have to do a lot of work to re-order the coffee decorators to say &#8220;double-mocha&#8221; whereas if you had developed it differently, double-mocha is easy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GooberDLX</title>
		<link>http://benreichelt.net/blog/2005/05/23/head-first-design-pattern-question/comment-page-1/#comment-336</link>
		<dc:creator>GooberDLX</dc:creator>
		<pubDate>Tue, 24 May 2005 06:41:35 +0000</pubDate>
		<guid isPermaLink="false">http://s194721765.onlinehome.us/blog/2005/05/23/head-first-design-pattern-question/#comment-336</guid>
		<description>first: i love the book, great way to introduce patterns to a developer...

second: i think it was merely an example of the factory pattern. straight up. just as in actual development, there are also a million ways to describe the same thing.</description>
		<content:encoded><![CDATA[<p>first: i love the book, great way to introduce patterns to a developer&#8230;</p>
<p>second: i think it was merely an example of the factory pattern. straight up. just as in actual development, there are also a million ways to describe the same thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: breichelt</title>
		<link>http://benreichelt.net/blog/2005/05/23/head-first-design-pattern-question/comment-page-1/#comment-335</link>
		<dc:creator>breichelt</dc:creator>
		<pubDate>Tue, 24 May 2005 05:40:22 +0000</pubDate>
		<guid isPermaLink="false">http://s194721765.onlinehome.us/blog/2005/05/23/head-first-design-pattern-question/#comment-335</guid>
		<description>Interesting, I have to go back and look at that chapter again, its been awhile since I read that one, I&#039;ll report back :-)</description>
		<content:encoded><![CDATA[<p>Interesting, I have to go back and look at that chapter again, its been awhile since I read that one, I&#8217;ll report back <img src='http://benreichelt.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://benreichelt.net/blog/2005/05/23/head-first-design-pattern-question/comment-page-1/#comment-334</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 24 May 2005 03:44:20 +0000</pubDate>
		<guid isPermaLink="false">http://s194721765.onlinehome.us/blog/2005/05/23/head-first-design-pattern-question/#comment-334</guid>
		<description>Isn&#039;t Decorator some kind of a last resort? Something you use when you need to change what&#039;s already there, but you can&#039;t do the way you want?

In this context, Decorator makes sense in the coffe shop, because they are expanding an existing architecture. If the pizza shop is starting from scratch, then you don&#039;t have that limitation.

I am guessing on the pizza shop, as I haven&#039;t bought the book yet, only read the sample chapter.</description>
		<content:encoded><![CDATA[<p>Isn&#8217;t Decorator some kind of a last resort? Something you use when you need to change what&#8217;s already there, but you can&#8217;t do the way you want?</p>
<p>In this context, Decorator makes sense in the coffe shop, because they are expanding an existing architecture. If the pizza shop is starting from scratch, then you don&#8217;t have that limitation.</p>
<p>I am guessing on the pizza shop, as I haven&#8217;t bought the book yet, only read the sample chapter.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
