<?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>Reacties op: Design Patterns &#8211; Factory Method Pattern</title>
	<atom:link href="http://www.cumps.be/design-patterns-factory-method-pattern/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cumps.be/design-patterns-factory-method-pattern/</link>
	<description>Living my life...</description>
	<lastBuildDate>Sat, 12 Dec 2009 22:49:53 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Door: Azade</title>
		<link>http://www.cumps.be/design-patterns-factory-method-pattern/comment-page-1/#comment-4618</link>
		<dc:creator>Azade</dc:creator>
		<pubDate>Fri, 06 Nov 2009 19:14:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cumps.be/design-patterns-factory-method-pattern/#comment-4618</guid>
		<description>Does Visual Studio 2005 support built-in class diagram?</description>
		<content:encoded><![CDATA[<p>Does Visual Studio 2005 support built-in class diagram?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: bebek</title>
		<link>http://www.cumps.be/design-patterns-factory-method-pattern/comment-page-1/#comment-545</link>
		<dc:creator>bebek</dc:creator>
		<pubDate>Thu, 04 Jun 2009 09:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cumps.be/design-patterns-factory-method-pattern/#comment-545</guid>
		<description>your article is easily to be understood
thanks for your sharing</description>
		<content:encoded><![CDATA[<p>your article is easily to be understood<br />
thanks for your sharing</p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: David Cumps</title>
		<link>http://www.cumps.be/design-patterns-factory-method-pattern/comment-page-1/#comment-544</link>
		<dc:creator>David Cumps</dc:creator>
		<pubDate>Wed, 27 Aug 2008 14:36:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cumps.be/design-patterns-factory-method-pattern/#comment-544</guid>
		<description>In the end you&#039;ll always have to change something somewhere when adding new classes.

What we have done, is moved to responsibility of how a GameUnit is created, to another class.

In the case of this example, a case is used to create new objects. But nobody says this has to be. It could very well be that a particular subclass always creates just one type of GameUnit, or that it creates type A with a lot of different parameters than B.

The logic on how to create a GameUnit is splitted from the class responsible for creating soldiers. The rest of our codebase will work with an InfantryFactory, which is locked (closed for modification), but have an actual implementation inside it (open for extension)

eg:
InfrantryFactory a = SomeClass.GetInfantryFactory(Faction.NOD);

Want a new faction? Create a new subclass, but don&#039;t touch anything else in your code (except the line above ofcourse, to assign your subclass :p)</description>
		<content:encoded><![CDATA[<p>In the end you&#8217;ll always have to change something somewhere when adding new classes.</p>
<p>What we have done, is moved to responsibility of how a GameUnit is created, to another class.</p>
<p>In the case of this example, a case is used to create new objects. But nobody says this has to be. It could very well be that a particular subclass always creates just one type of GameUnit, or that it creates type A with a lot of different parameters than B.</p>
<p>The logic on how to create a GameUnit is splitted from the class responsible for creating soldiers. The rest of our codebase will work with an InfantryFactory, which is locked (closed for modification), but have an actual implementation inside it (open for extension)</p>
<p>eg:<br />
InfrantryFactory a = SomeClass.GetInfantryFactory(Faction.NOD);</p>
<p>Want a new faction? Create a new subclass, but don&#8217;t touch anything else in your code (except the line above ofcourse, to assign your subclass :p)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: mike</title>
		<link>http://www.cumps.be/design-patterns-factory-method-pattern/comment-page-1/#comment-543</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Wed, 27 Aug 2008 12:48:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cumps.be/design-patterns-factory-method-pattern/#comment-543</guid>
		<description>thanks for your greate article,
there&#039;s a thing that has got me thinkin tho&#039;...

if we added a new type of unit, we had to modify the subclasses of InfrantryFactory (adding a new case: ..) so why is it such a big advantage that we have to modify those and not InfrantryFactory itself? dont we violate the closed for modification/open for extension principle in either way?

hope i could make my problem clear, keep up the great work + thanks in advance!</description>
		<content:encoded><![CDATA[<p>thanks for your greate article,<br />
there&#8217;s a thing that has got me thinkin tho&#8217;&#8230;</p>
<p>if we added a new type of unit, we had to modify the subclasses of InfrantryFactory (adding a new case: ..) so why is it such a big advantage that we have to modify those and not InfrantryFactory itself? dont we violate the closed for modification/open for extension principle in either way?</p>
<p>hope i could make my problem clear, keep up the great work + thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: David Cumps</title>
		<link>http://www.cumps.be/design-patterns-factory-method-pattern/comment-page-1/#comment-542</link>
		<dc:creator>David Cumps</dc:creator>
		<pubDate>Tue, 26 Aug 2008 15:13:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cumps.be/design-patterns-factory-method-pattern/#comment-542</guid>
		<description>I tried Java :) Everyone&#039;s free to code in whatever language he likes, and whatever IDE, I&#039;m not a zealot of any kind :)</description>
		<content:encoded><![CDATA[<p>I tried Java <img src='http://www.cumps.be/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Everyone&#8217;s free to code in whatever language he likes, and whatever IDE, I&#8217;m not a zealot of any kind <img src='http://www.cumps.be/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: Ali</title>
		<link>http://www.cumps.be/design-patterns-factory-method-pattern/comment-page-1/#comment-541</link>
		<dc:creator>Ali</dc:creator>
		<pubDate>Tue, 26 Aug 2008 12:03:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cumps.be/design-patterns-factory-method-pattern/#comment-541</guid>
		<description>We thank you but try Java!</description>
		<content:encoded><![CDATA[<p>We thank you but try Java!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: David Cumps</title>
		<link>http://www.cumps.be/design-patterns-factory-method-pattern/comment-page-1/#comment-539</link>
		<dc:creator>David Cumps</dc:creator>
		<pubDate>Mon, 14 Jul 2008 11:57:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cumps.be/design-patterns-factory-method-pattern/#comment-539</guid>
		<description>I&#039;m using Visual Studio 2008 built-in class diagram support :)</description>
		<content:encoded><![CDATA[<p>I&#8217;m using Visual Studio 2008 built-in class diagram support <img src='http://www.cumps.be/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: MichaÅ‚ Mech</title>
		<link>http://www.cumps.be/design-patterns-factory-method-pattern/comment-page-1/#comment-540</link>
		<dc:creator>MichaÅ‚ Mech</dc:creator>
		<pubDate>Mon, 14 Jul 2008 11:45:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cumps.be/design-patterns-factory-method-pattern/#comment-540</guid>
		<description>You have great screens with examples. What tool are You using?

P.S.
Article is great too.</description>
		<content:encoded><![CDATA[<p>You have great screens with examples. What tool are You using?</p>
<p>P.S.<br />
Article is great too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: rascunho &#187; Blog Archive &#187; links for 2008-07-13</title>
		<link>http://www.cumps.be/design-patterns-factory-method-pattern/comment-page-1/#comment-538</link>
		<dc:creator>rascunho &#187; Blog Archive &#187; links for 2008-07-13</dc:creator>
		<pubDate>Sun, 13 Jul 2008 20:30:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cumps.be/design-patterns-factory-method-pattern/#comment-538</guid>
		<description>[...] David Cumps Â» Design Patterns - Factory Method Pattern Define an interface for creating an object, but let the subclasses decide which class to instantiate. The Factory method lets a class defer instantiation to subclasses. (tags: blog.cumps.be 2008 mes6 dia12 at_home C# design_patterns Factory_Method blog_post explicaÃ§Ã£o_introdutÃ³ria) [...]</description>
		<content:encoded><![CDATA[<p>[...] David Cumps Â» Design Patterns &#8211; Factory Method Pattern Define an interface for creating an object, but let the subclasses decide which class to instantiate. The Factory method lets a class defer instantiation to subclasses. (tags: blog.cumps.be 2008 mes6 dia12 at_home C# design_patterns Factory_Method blog_post explicaÃ§Ã£o_introdutÃ³ria) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: Design Patterns - Abstract Factory Pattern - David Cumps</title>
		<link>http://www.cumps.be/design-patterns-factory-method-pattern/comment-page-1/#comment-537</link>
		<dc:creator>Design Patterns - Abstract Factory Pattern - David Cumps</dc:creator>
		<pubDate>Sun, 13 Jul 2008 18:17:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cumps.be/design-patterns-factory-method-pattern/#comment-537</guid>
		<description>[...] to continue from yesterday&#039;s Factory Method Pattern by exploring the Abstract Factory [...]</description>
		<content:encoded><![CDATA[<p>[...] to continue from yesterday&#8217;s Factory Method Pattern by exploring the Abstract Factory [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: David Cumps &#187; Design Patterns - Abstract Factory Pattern</title>
		<link>http://www.cumps.be/design-patterns-factory-method-pattern/comment-page-1/#comment-536</link>
		<dc:creator>David Cumps &#187; Design Patterns - Abstract Factory Pattern</dc:creator>
		<pubDate>Sun, 13 Jul 2008 18:14:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cumps.be/design-patterns-factory-method-pattern/#comment-536</guid>
		<description>[...] to continue from yesterday&#8217;s Factory Method Pattern by exploring the Abstract Factory [...]</description>
		<content:encoded><![CDATA[<p>[...] to continue from yesterday&#8217;s Factory Method Pattern by exploring the Abstract Factory [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: Maxim Rouiller</title>
		<link>http://www.cumps.be/design-patterns-factory-method-pattern/comment-page-1/#comment-535</link>
		<dc:creator>Maxim Rouiller</dc:creator>
		<pubDate>Sun, 13 Jul 2008 05:11:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cumps.be/design-patterns-factory-method-pattern/#comment-535</guid>
		<description>Thank you again!

I&#039;m happy that everything is doing fine now!

I was hoping for another blog post :)

Thank you</description>
		<content:encoded><![CDATA[<p>Thank you again!</p>
<p>I&#8217;m happy that everything is doing fine now!</p>
<p>I was hoping for another blog post <img src='http://www.cumps.be/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>Door: Design Patterns - Factory Method Pattern - David Cumps</title>
		<link>http://www.cumps.be/design-patterns-factory-method-pattern/comment-page-1/#comment-534</link>
		<dc:creator>Design Patterns - Factory Method Pattern - David Cumps</dc:creator>
		<pubDate>Sat, 12 Jul 2008 19:37:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cumps.be/design-patterns-factory-method-pattern/#comment-534</guid>
		<description>[...] more at http://blog.cumps.be/design-patterns-factory-method-pattern/  Filed under: C#, General Software Development, Visual Studio, .NET, Design [...]</description>
		<content:encoded><![CDATA[<p>[...] more at <a href="http://blog.cumps.be/design-patterns-factory-method-pattern/" rel="nofollow">http://blog.cumps.be/design-patterns-factory-method-pattern/</a>  Filed under: C#, General Software Development, Visual Studio, .NET, Design [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
