<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
	>
<channel>
	<title>Comments on: Friends with Benefits: Refactoring with Multiple Design Patterns—Part I</title>
	<atom:link href="http://www.as3dp.com/2009/06/16/friends-with-benefits-refactoring-with-multiple-design-patterns%e2%80%94part-i/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.as3dp.com/2009/06/16/friends-with-benefits-refactoring-with-multiple-design-patterns%e2%80%94part-i/</link>
	<description>OOP Techniques for Flash and Flex Developers</description>
	<lastBuildDate>Mon, 26 Jul 2010 13:40:37 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: William B. Sanders</title>
		<link>http://www.as3dp.com/2009/06/16/friends-with-benefits-refactoring-with-multiple-design-patterns%e2%80%94part-i/comment-page-1/#comment-3994</link>
		<dc:creator>William B. Sanders</dc:creator>
		<pubDate>Tue, 09 Feb 2010 02:20:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=1077#comment-3994</guid>
		<description>Hi Jon,

Actually, a constructor method is automatically included if none is specified in ActionScript 3.0. However, a constructor method is only needed to be specified if you are going to have the instantiating object do something other than serve as a platform for using the methods and properties of the instantiated class.

I&#039;ve been having better luck asking myself, &lt;em&gt;Do you really need a constructor function?&lt;/em&gt; rather than &lt;em&gt;Why did I leave (an explicit) constructor function out?&lt;/em&gt;

Kindest regards,
Bill</description>
		<content:encoded><![CDATA[<p>Hi Jon,</p>
<p>Actually, a constructor method is automatically included if none is specified in ActionScript 3.0. However, a constructor method is only needed to be specified if you are going to have the instantiating object do something other than serve as a platform for using the methods and properties of the instantiated class.</p>
<p>I&#8217;ve been having better luck asking myself, <em>Do you really need a constructor function?</em> rather than <em>Why did I leave (an explicit) constructor function out?</em></p>
<p>Kindest regards,<br />
Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://www.as3dp.com/2009/06/16/friends-with-benefits-refactoring-with-multiple-design-patterns%e2%80%94part-i/comment-page-1/#comment-3993</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Mon, 08 Feb 2010 22:50:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=1077#comment-3993</guid>
		<description>Why is there no constructor method in each creator class (abstract or concrete) in the Factory pattern?  Forgive me if this is a noob-ish question.  Thanks.</description>
		<content:encoded><![CDATA[<p>Why is there no constructor method in each creator class (abstract or concrete) in the Factory pattern?  Forgive me if this is a noob-ish question.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William B. Sanders</title>
		<link>http://www.as3dp.com/2009/06/16/friends-with-benefits-refactoring-with-multiple-design-patterns%e2%80%94part-i/comment-page-1/#comment-2621</link>
		<dc:creator>William B. Sanders</dc:creator>
		<pubDate>Thu, 25 Jun 2009 19:58:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=1077#comment-2621</guid>
		<description>Hi Bill,

I did note:

&lt;blockquote&gt;The DataProvider object can be loaded with data in several ways—using the addItem() method, an array or XML files.&lt;/blockquote&gt;

So, you can use XML files with this design. As with most examples in this blog, we use pretty simple examples with the focus on the architecture and not the size of the task at hand. In that sense, all of the examples are &#039;over-designed.&#039; No disagreement there. The important feature of the designs is whether they can be easily changed without causing a chain reaction the cripples the program.

Given that, let&#039;s put this design to the acid test. Add a concrete Product class (DataSupply is the Product class in this example; so it would be an extension of DataSupply) that pulls data out of an XML file but still places the data into the DataProvider object that can be used with the program.

Thanks for your insights and let&#039;s see that new DataSupply subclass that incorporates your idea!

Kindest regards,
Bill</description>
		<content:encoded><![CDATA[<p>Hi Bill,</p>
<p>I did note:</p>
<blockquote><p>The DataProvider object can be loaded with data in several ways—using the addItem() method, an array or XML files.</p></blockquote>
<p>So, you can use XML files with this design. As with most examples in this blog, we use pretty simple examples with the focus on the architecture and not the size of the task at hand. In that sense, all of the examples are &#8216;over-designed.&#8217; No disagreement there. The important feature of the designs is whether they can be easily changed without causing a chain reaction the cripples the program.</p>
<p>Given that, let&#8217;s put this design to the acid test. Add a concrete Product class (DataSupply is the Product class in this example; so it would be an extension of DataSupply) that pulls data out of an XML file but still places the data into the DataProvider object that can be used with the program.</p>
<p>Thanks for your insights and let&#8217;s see that new DataSupply subclass that incorporates your idea!</p>
<p>Kindest regards,<br />
Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill_BsB</title>
		<link>http://www.as3dp.com/2009/06/16/friends-with-benefits-refactoring-with-multiple-design-patterns%e2%80%94part-i/comment-page-1/#comment-2620</link>
		<dc:creator>Bill_BsB</dc:creator>
		<pubDate>Thu, 25 Jun 2009 19:33:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=1077#comment-2620</guid>
		<description>Hi there!

The example is pretty good as usual! I really like to see Patterns in Action. The point of the post was quite clear.

Now, looking trought a different perspective, I think this is the classical example of an over-design situation, IMHO.

A XML parser/logic/algorithm would be quicker, easier and could easily be encapsulated.

Don´t miss understand me. I´m just raising the importance of not to over-design a simple application.

Cheers</description>
		<content:encoded><![CDATA[<p>Hi there!</p>
<p>The example is pretty good as usual! I really like to see Patterns in Action. The point of the post was quite clear.</p>
<p>Now, looking trought a different perspective, I think this is the classical example of an over-design situation, IMHO.</p>
<p>A XML parser/logic/algorithm would be quicker, easier and could easily be encapsulated.</p>
<p>Don´t miss understand me. I´m just raising the importance of not to over-design a simple application.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William B. Sanders</title>
		<link>http://www.as3dp.com/2009/06/16/friends-with-benefits-refactoring-with-multiple-design-patterns%e2%80%94part-i/comment-page-1/#comment-2592</link>
		<dc:creator>William B. Sanders</dc:creator>
		<pubDate>Fri, 19 Jun 2009 01:23:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=1077#comment-2592</guid>
		<description>Hi Mark,

I am very glad to hear that. When I get to the State pattern, I decided to create it as a simple progressive download player because not that many have Flash Media Server.

Kindest regards,
Bill</description>
		<content:encoded><![CDATA[<p>Hi Mark,</p>
<p>I am very glad to hear that. When I get to the State pattern, I decided to create it as a simple progressive download player because not that many have Flash Media Server.</p>
<p>Kindest regards,<br />
Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark A.</title>
		<link>http://www.as3dp.com/2009/06/16/friends-with-benefits-refactoring-with-multiple-design-patterns%e2%80%94part-i/comment-page-1/#comment-2591</link>
		<dc:creator>Mark A.</dc:creator>
		<pubDate>Thu, 18 Jun 2009 22:50:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=1077#comment-2591</guid>
		<description>Thanks. Every single exercise and example helps to get pattern in our brains. Good job!</description>
		<content:encoded><![CDATA[<p>Thanks. Every single exercise and example helps to get pattern in our brains. Good job!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
