<?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: PHP Chain of Responsibility Design Pattern from ActionScript 3.0</title>
	<atom:link href="http://www.as3dp.com/2009/11/15/php-chain-of-responsibility-design-pattern-from-actionscript-30/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.as3dp.com/2009/11/15/php-chain-of-responsibility-design-pattern-from-actionscript-30/</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/11/15/php-chain-of-responsibility-design-pattern-from-actionscript-30/comment-page-1/#comment-3722</link>
		<dc:creator>William B. Sanders</dc:creator>
		<pubDate>Tue, 22 Dec 2009 12:27:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=2131#comment-3722</guid>
		<description>Hi Bill,

I like the idea that DPs are idea-centered solutions. If you understand the basic idea; you can create anything in any language.  However, while the Singleton is an interesting exercise on how to create a private class, remember, &lt;em&gt;Singletons are evil&lt;/em&gt;.

Enjoy the Netherlands--wonderful people there. I attended the University of Leiden years ago. Great experience.

Kindest regards,
Bill</description>
		<content:encoded><![CDATA[<p>Hi Bill,</p>
<p>I like the idea that DPs are idea-centered solutions. If you understand the basic idea; you can create anything in any language.  However, while the Singleton is an interesting exercise on how to create a private class, remember, <em>Singletons are evil</em>.</p>
<p>Enjoy the Netherlands&#8211;wonderful people there. I attended the University of Leiden years ago. Great experience.</p>
<p>Kindest regards,<br />
Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William R. J. Ribeiro</title>
		<link>http://www.as3dp.com/2009/11/15/php-chain-of-responsibility-design-pattern-from-actionscript-30/comment-page-1/#comment-3721</link>
		<dc:creator>William R. J. Ribeiro</dc:creator>
		<pubDate>Mon, 21 Dec 2009 21:47:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=2131#comment-3721</guid>
		<description>Hi guys!

Great post! I always like to see DP on different languages and how do they come up with some technical solutions.

I remember when I first started programming with AS3 and tried to implement a Singleton. &quot;No private constructor?! What the hell?!&quot; I got really disappointed on that time but there are always some solutions. And in the case of the Singleton, a LOT of solutions.

That&#039;s one of collest things about DP: they are idea-centered solutions. You implement it the best way you can.

Cheers (from the Nederlands now!)

Bill_BsB</description>
		<content:encoded><![CDATA[<p>Hi guys!</p>
<p>Great post! I always like to see DP on different languages and how do they come up with some technical solutions.</p>
<p>I remember when I first started programming with AS3 and tried to implement a Singleton. &#8220;No private constructor?! What the hell?!&#8221; I got really disappointed on that time but there are always some solutions. And in the case of the Singleton, a LOT of solutions.</p>
<p>That&#8217;s one of collest things about DP: they are idea-centered solutions. You implement it the best way you can.</p>
<p>Cheers (from the Nederlands now!)</p>
<p>Bill_BsB</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William B. Sanders</title>
		<link>http://www.as3dp.com/2009/11/15/php-chain-of-responsibility-design-pattern-from-actionscript-30/comment-page-1/#comment-3355</link>
		<dc:creator>William B. Sanders</dc:creator>
		<pubDate>Mon, 16 Nov 2009 19:17:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=2131#comment-3355</guid>
		<description>Hi HangTen,

Dude, it&#039;s never too late to add good ideas!

First of all, thanks for the work-around for typing to an interface. Let me see if I&#039;ve got this right. You set up the typing using the format &lt;strong&gt;set_someVariable(IdataType $someVariable);&lt;/strong&gt;. That, I definitely will have to try.

Second, one of the ironies of Strict typing is that it aids in loose coupling. The reason is that typing to the interface commits you only to the interface and doesn&#039;t tie you up with the implementation. You have to think:&lt;blockquote&gt;
Strict typing = Loose coupling
&lt;/blockquote&gt;
If strict typing ever comes to PHP, welcome it. It will loosen you up!

Kindest regards,
Bill</description>
		<content:encoded><![CDATA[<p>Hi HangTen,</p>
<p>Dude, it&#8217;s never too late to add good ideas!</p>
<p>First of all, thanks for the work-around for typing to an interface. Let me see if I&#8217;ve got this right. You set up the typing using the format <strong>set_someVariable(IdataType $someVariable);</strong>. That, I definitely will have to try.</p>
<p>Second, one of the ironies of Strict typing is that it aids in loose coupling. The reason is that typing to the interface commits you only to the interface and doesn&#8217;t tie you up with the implementation. You have to think:<br />
<blockquote>
Strict typing = Loose coupling
</p></blockquote>
<p>If strict typing ever comes to PHP, welcome it. It will loosen you up!</p>
<p>Kindest regards,<br />
Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William B. Sanders</title>
		<link>http://www.as3dp.com/2009/11/15/php-chain-of-responsibility-design-pattern-from-actionscript-30/comment-page-1/#comment-3354</link>
		<dc:creator>William B. Sanders</dc:creator>
		<pubDate>Mon, 16 Nov 2009 19:04:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=2131#comment-3354</guid>
		<description>Hi Dave,

Thanks for the tip on using _autoload. I&#039;ll give it a try for my next PHP design pattern.

Kindest regards,
Bill</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>Thanks for the tip on using _autoload. I&#8217;ll give it a try for my next PHP design pattern.</p>
<p>Kindest regards,<br />
Bill</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HangTeam</title>
		<link>http://www.as3dp.com/2009/11/15/php-chain-of-responsibility-design-pattern-from-actionscript-30/comment-page-1/#comment-3352</link>
		<dc:creator>HangTeam</dc:creator>
		<pubDate>Mon, 16 Nov 2009 16:03:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=2131#comment-3352</guid>
		<description>I just come across your article. It&#039;s excellent.

Don&#039;t know whether it&#039;s too late or not. I want to share how i do &quot;Program to interface not implementation&quot; in PHP

here&#039;s my code
&lt;code&gt;
   public static function set_payment(IPayment $payment) {
      // use type hinting to make sure that the $payment object
      // must implement &#039;IPayment&#039; interface (This is one what we 
      // looking for &quot;program to interface not implementation&quot;)
      $this-&gt;payment = $payment
      .. some codes
      $this-&gt;payment-&gt;process();
   }
&lt;/code&gt;

In my opinion this &quot;Program to interface not implementation&quot; phase rising up because the downside(pitfall) of &quot;Strict type&quot; language itself.

With any dynamic type languages you always come up with that phase.
e.g.
&lt;code&gt;
 $i_payment = new ConcretThatImplementIPayment;
 // is equivalent this line in flash
 var i_payment:IPayment = new ConcreteThatImplementIPayment;
&lt;/code&gt;

PS. May be there&#039;s only me that think like this :)</description>
		<content:encoded><![CDATA[<p>I just come across your article. It&#8217;s excellent.</p>
<p>Don&#8217;t know whether it&#8217;s too late or not. I want to share how i do &#8220;Program to interface not implementation&#8221; in PHP</p>
<p>here&#8217;s my code<br />
<code><br />
   public static function set_payment(IPayment $payment) {<br />
      // use type hinting to make sure that the $payment object<br />
      // must implement 'IPayment' interface (This is one what we<br />
      // looking for "program to interface not implementation")<br />
      $this-&gt;payment = $payment<br />
      .. some codes<br />
      $this-&gt;payment-&gt;process();<br />
   }<br />
</code></p>
<p>In my opinion this &#8220;Program to interface not implementation&#8221; phase rising up because the downside(pitfall) of &#8220;Strict type&#8221; language itself.</p>
<p>With any dynamic type languages you always come up with that phase.<br />
e.g.<br />
<code><br />
 $i_payment = new ConcretThatImplementIPayment;<br />
 // is equivalent this line in flash<br />
 var i_payment:IPayment = new ConcreteThatImplementIPayment;<br />
</code></p>
<p>PS. May be there&#8217;s only me that think like this :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.as3dp.com/2009/11/15/php-chain-of-responsibility-design-pattern-from-actionscript-30/comment-page-1/#comment-3347</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 16 Nov 2009 10:46:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3dp.com/?p=2131#comment-3347</guid>
		<description>Good read, thanks!

In php you can do an __autoload to handle the includes.</description>
		<content:encoded><![CDATA[<p>Good read, thanks!</p>
<p>In php you can do an __autoload to handle the includes.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
