<?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: Learn this: Strategy pattern vs Decorator pattern</title>
	<atom:link href="http://codeofdoom.com/wordpress/2009/05/10/learn-this-strategy-pattern-vs-decorator-pattern/feed/" rel="self" type="application/rss+xml" />
	<link>http://codeofdoom.com/wordpress/2009/05/10/learn-this-strategy-pattern-vs-decorator-pattern/</link>
	<description></description>
	<lastBuildDate>Sun, 29 Jan 2012 03:53:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Mohit Jethva</title>
		<link>http://codeofdoom.com/wordpress/2009/05/10/learn-this-strategy-pattern-vs-decorator-pattern/comment-page-1/#comment-663</link>
		<dc:creator>Mohit Jethva</dc:creator>
		<pubDate>Mon, 19 Dec 2011 12:02:21 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=492#comment-663</guid>
		<description>Very good example keep it up............... :)</description>
		<content:encoded><![CDATA[<p>Very good example keep it up&#8230;&#8230;&#8230;&#8230;&#8230; <img src='http://codeofdoom.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://codeofdoom.com/wordpress/2009/05/10/learn-this-strategy-pattern-vs-decorator-pattern/comment-page-1/#comment-637</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Thu, 15 Sep 2011 06:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=492#comment-637</guid>
		<description>Strategy  :  Use when u have a choose from multiple standalone approaches (algorithms to address certain issue)

Decorator : Use when u have to choose from multiple approaches where each approach (may or may not) need to fabricated using certain thing in certain order.

It will help to overcome the need to specialise various combinations using inheritance methodology.</description>
		<content:encoded><![CDATA[<p>Strategy  :  Use when u have a choose from multiple standalone approaches (algorithms to address certain issue)</p>
<p>Decorator : Use when u have to choose from multiple approaches where each approach (may or may not) need to fabricated using certain thing in certain order.</p>
<p>It will help to overcome the need to specialise various combinations using inheritance methodology.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blaenk</title>
		<link>http://codeofdoom.com/wordpress/2009/05/10/learn-this-strategy-pattern-vs-decorator-pattern/comment-page-1/#comment-403</link>
		<dc:creator>Blaenk</dc:creator>
		<pubDate>Sun, 29 Aug 2010 02:09:42 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=492#comment-403</guid>
		<description>&lt;a href=&quot;#comment-215&quot; rel=&quot;nofollow&quot;&gt;@Jose Noheda&lt;/a&gt;: awesome, that really boils it down.

Thanks Marcel. I&#039;m new to these patterns and although they may not be too similar to the experienced, I was pretty confused at first. This cleared it up :D</description>
		<content:encoded><![CDATA[<p><a href="#comment-215" rel="nofollow">@Jose Noheda</a>: awesome, that really boils it down.</p>
<p>Thanks Marcel. I&#8217;m new to these patterns and although they may not be too similar to the experienced, I was pretty confused at first. This cleared it up <img src='http://codeofdoom.com/wordpress/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cellux</title>
		<link>http://codeofdoom.com/wordpress/2009/05/10/learn-this-strategy-pattern-vs-decorator-pattern/comment-page-1/#comment-349</link>
		<dc:creator>Cellux</dc:creator>
		<pubDate>Mon, 03 May 2010 08:01:21 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=492#comment-349</guid>
		<description>I wouldn&#039;t ask about specific patterns on an interview. Knowing a pattern in itself doesn&#039;t give real value to a developer because it&#039;s just a part of the story of modeling. I&#039;ve come across a lot of developers who know most patterns of the Gang of Four if specifically asked but they simply don&#039;t or can&#039;t use them in practice.

I think it&#039;s better to do a &quot;real&quot; OO modeling excercise where using some patterns is advantageous to address the problem. Then you test the skill that&#039;s most relevant to your business and you still have the option to talk about relevant patterns.

What do you think?</description>
		<content:encoded><![CDATA[<p>I wouldn&#8217;t ask about specific patterns on an interview. Knowing a pattern in itself doesn&#8217;t give real value to a developer because it&#8217;s just a part of the story of modeling. I&#8217;ve come across a lot of developers who know most patterns of the Gang of Four if specifically asked but they simply don&#8217;t or can&#8217;t use them in practice.</p>
<p>I think it&#8217;s better to do a &#8220;real&#8221; OO modeling excercise where using some patterns is advantageous to address the problem. Then you test the skill that&#8217;s most relevant to your business and you still have the option to talk about relevant patterns.</p>
<p>What do you think?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John P</title>
		<link>http://codeofdoom.com/wordpress/2009/05/10/learn-this-strategy-pattern-vs-decorator-pattern/comment-page-1/#comment-284</link>
		<dc:creator>John P</dc:creator>
		<pubDate>Wed, 16 Dec 2009 22:00:35 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=492#comment-284</guid>
		<description>A funny analogy in GoF is Decorator changes the skin, while Strategy changes the guts.  I think this is a pretty relevant distinction.</description>
		<content:encoded><![CDATA[<p>A funny analogy in GoF is Decorator changes the skin, while Strategy changes the guts.  I think this is a pretty relevant distinction.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcel</title>
		<link>http://codeofdoom.com/wordpress/2009/05/10/learn-this-strategy-pattern-vs-decorator-pattern/comment-page-1/#comment-219</link>
		<dc:creator>Marcel</dc:creator>
		<pubDate>Mon, 11 May 2009 17:19:26 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=492#comment-219</guid>
		<description>&lt;a href=&quot;#comment-214&quot; rel=&quot;nofollow&quot;&gt;@Roger&lt;/a&gt; 
90% of the time, I will ask about the Singleton pattern (the curve ball for this is to how to &quot;properly&quot; do it in actionscript). Decorators and Strategy patterns will usually get mentioned. More so on strategy since they deal with interfaces and I can easily roll into questions about that. 

There are a few others that might get mentioned, but they definitely get mentioned more so than the others.

A really good book (despite its silly cover) is &lt;a href-&quot;http://www.amazon.com/First-Design-Patterns-Elisabeth-Freeman/dp/0596007124/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1242062190&amp;sr=8-1&quot; rel=&quot;nofollow&quot;&gt;Head First Design Patterns &lt;/a&gt; They definitely hit on most of the popular patterns and do a great job at explaining them and providing examples.

Hope that helps!
Marcel</description>
		<content:encoded><![CDATA[<p><a href="#comment-214" rel="nofollow">@Roger</a><br />
90% of the time, I will ask about the Singleton pattern (the curve ball for this is to how to &#8220;properly&#8221; do it in actionscript). Decorators and Strategy patterns will usually get mentioned. More so on strategy since they deal with interfaces and I can easily roll into questions about that. </p>
<p>There are a few others that might get mentioned, but they definitely get mentioned more so than the others.</p>
<p>A really good book (despite its silly cover) is <a href-"http://www.amazon.com/First-Design-Patterns-Elisabeth-Freeman/dp/0596007124/ref=sr_1_1?ie=UTF8&#038;s=books&#038;qid=1242062190&#038;sr=8-1" rel="nofollow">Head First Design Patterns </a> They definitely hit on most of the popular patterns and do a great job at explaining them and providing examples.</p>
<p>Hope that helps!<br />
Marcel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KL</title>
		<link>http://codeofdoom.com/wordpress/2009/05/10/learn-this-strategy-pattern-vs-decorator-pattern/comment-page-1/#comment-218</link>
		<dc:creator>KL</dc:creator>
		<pubDate>Mon, 11 May 2009 16:42:33 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=492#comment-218</guid>
		<description>Great article! One thing that I&#039;d add (while subtle) is the different &quot;type&quot; of design patterns that Strategy and Decorator are, which may shed light on how and when to use design patterns, in general. 

Stategy is a behavioral design pattern, meaning, you use it to describe or design how software components/layers interact with each other. This is usually the high level interfaces/abstract classes/object hierarchy.
Decorator, on the other hand, is more of a structural design pattern. This deals more with concrete object implementation.

In the article, it seems you are saying you have to choose to use one or the other, which I don&#039;t think is necessarily correct. Since they happen at different levels of the architecture, they can be used together or separately. 

Just my 2 cents.</description>
		<content:encoded><![CDATA[<p>Great article! One thing that I&#8217;d add (while subtle) is the different &#8220;type&#8221; of design patterns that Strategy and Decorator are, which may shed light on how and when to use design patterns, in general. </p>
<p>Stategy is a behavioral design pattern, meaning, you use it to describe or design how software components/layers interact with each other. This is usually the high level interfaces/abstract classes/object hierarchy.<br />
Decorator, on the other hand, is more of a structural design pattern. This deals more with concrete object implementation.</p>
<p>In the article, it seems you are saying you have to choose to use one or the other, which I don&#8217;t think is necessarily correct. Since they happen at different levels of the architecture, they can be used together or separately. </p>
<p>Just my 2 cents.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose Noheda</title>
		<link>http://codeofdoom.com/wordpress/2009/05/10/learn-this-strategy-pattern-vs-decorator-pattern/comment-page-1/#comment-215</link>
		<dc:creator>Jose Noheda</dc:creator>
		<pubDate>Mon, 11 May 2009 13:46:13 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=492#comment-215</guid>
		<description>Strategy allows you to replace something with an alternative implementation. Decorator transparently enhances objects. There are several patterns in GoF that look pretty similar to each other but IMO these two are not among those.</description>
		<content:encoded><![CDATA[<p>Strategy allows you to replace something with an alternative implementation. Decorator transparently enhances objects. There are several patterns in GoF that look pretty similar to each other but IMO these two are not among those.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roger</title>
		<link>http://codeofdoom.com/wordpress/2009/05/10/learn-this-strategy-pattern-vs-decorator-pattern/comment-page-1/#comment-214</link>
		<dc:creator>Roger</dc:creator>
		<pubDate>Mon, 11 May 2009 13:34:41 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=492#comment-214</guid>
		<description>Hello,

Which design patterns would you say are common enough to be asked during an interview? everytime i hit the books i get overwhelmed with all of the GO4 design patterns, i know you should know all of them, but, it&#039;s hard to keep track of all of them, so it should be nice to just focus on those that are &quot;essential&quot; or common, that is, the ones that you must know or at least be familiar with.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Which design patterns would you say are common enough to be asked during an interview? everytime i hit the books i get overwhelmed with all of the GO4 design patterns, i know you should know all of them, but, it&#8217;s hard to keep track of all of them, so it should be nice to just focus on those that are &#8220;essential&#8221; or common, that is, the ones that you must know or at least be familiar with.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcel</title>
		<link>http://codeofdoom.com/wordpress/2009/05/10/learn-this-strategy-pattern-vs-decorator-pattern/comment-page-1/#comment-213</link>
		<dc:creator>Marcel</dc:creator>
		<pubDate>Mon, 11 May 2009 13:04:11 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=492#comment-213</guid>
		<description>noted :) good point. 

Thanks!</description>
		<content:encoded><![CDATA[<p>noted <img src='http://codeofdoom.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  good point. </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

