<?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"
	>
<channel>
	<title>Comments on: PHP Interfaces: when and why you should use them instead of classes?</title>
	<atom:link href="http://www.killerphp.com/articles/php-interfaces/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.killerphp.com/articles/php-interfaces/</link>
	<description>Dedicated to teaching web designers PHP.</description>
	<pubDate>Fri, 21 Nov 2008 16:36:25 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Jay</title>
		<link>http://www.killerphp.com/articles/php-interfaces/#comment-40845</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Thu, 15 Nov 2007 05:40:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.killerphp.com/articles/php-interfaces/#comment-40845</guid>
		<description>hi... i get the idea now how interfaces, but as a grasp, its more like an Abstract Class to me.

i would like to ask if PHP support object declaration inside an interface???

i could hardly find resources that discusses how to create interfaces, and this was my first step and thanks again... but if anyone might care to give me a site where i can find tutorials about interfaces or OO in PHP as a whole... 

a whole lot of thanks.

God bless!</description>
		<content:encoded><![CDATA[<p>hi&#8230; i get the idea now how interfaces, but as a grasp, its more like an Abstract Class to me.</p>
<p>i would like to ask if PHP support object declaration inside an interface???</p>
<p>i could hardly find resources that discusses how to create interfaces, and this was my first step and thanks again&#8230; but if anyone might care to give me a site where i can find tutorials about interfaces or OO in PHP as a whole&#8230; </p>
<p>a whole lot of thanks.</p>
<p>God bless!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Mischook</title>
		<link>http://www.killerphp.com/articles/php-interfaces/#comment-27315</link>
		<dc:creator>Stefan Mischook</dc:creator>
		<pubDate>Thu, 30 Aug 2007 23:23:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.killerphp.com/articles/php-interfaces/#comment-27315</guid>
		<description>Hi Jim,

Fair enough.

I appreciate your input as it helps to provide more insight into the subject.

Thanks,

Stefan</description>
		<content:encoded><![CDATA[<p>Hi Jim,</p>
<p>Fair enough.</p>
<p>I appreciate your input as it helps to provide more insight into the subject.</p>
<p>Thanks,</p>
<p>Stefan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://www.killerphp.com/articles/php-interfaces/#comment-27301</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Thu, 30 Aug 2007 22:14:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.killerphp.com/articles/php-interfaces/#comment-27301</guid>
		<description>Hi, Great Podcast.

But I didn't agree 100% with the way you described Interfaces. You described interfaces as being an alternative to abstract classs, kind of a more 'abstract' abstract class since you do not but in any guts at all. But I do not believe that is the point of an interface and you are really describing a very abstract base class. This was must illustrated by the animal example you gave. You define a  class with methods that represent what an animal is and you leave the filling in of methods to classes that inherit form it like this.

Abstract Animal{
-abstract breath()
-abstract eat()
-abstract move()
}
Abstract Aquatic_Animal extends Animal{
-breath{ use_gills();}
-move{  move_fins();}
}
shark extends Aquatic_Animal {
-eat(){ bite(Animal $food);}
}
gold_fish extends Aquatic_Animal{
-eat(){swallow(Plant $food);}
}

Interfaces are more for giving general abilities to classes that aren't logical parts of the class itself. Things of this nature would be 'Draw' class that would have a method called 'draw()' that returns a image of your animal. Or maybe an iterator interface that lets you treat your object like it is a set.</description>
		<content:encoded><![CDATA[<p>Hi, Great Podcast.</p>
<p>But I didn&#8217;t agree 100% with the way you described Interfaces. You described interfaces as being an alternative to abstract classs, kind of a more &#8216;abstract&#8217; abstract class since you do not but in any guts at all. But I do not believe that is the point of an interface and you are really describing a very abstract base class. This was must illustrated by the animal example you gave. You define a  class with methods that represent what an animal is and you leave the filling in of methods to classes that inherit form it like this.</p>
<p>Abstract Animal{<br />
-abstract breath()<br />
-abstract eat()<br />
-abstract move()<br />
}<br />
Abstract Aquatic_Animal extends Animal{<br />
-breath{ use_gills();}<br />
-move{  move_fins();}<br />
}<br />
shark extends Aquatic_Animal {<br />
-eat(){ bite(Animal $food);}<br />
}<br />
gold_fish extends Aquatic_Animal{<br />
-eat(){swallow(Plant $food);}<br />
}</p>
<p>Interfaces are more for giving general abilities to classes that aren&#8217;t logical parts of the class itself. Things of this nature would be &#8216;Draw&#8217; class that would have a method called &#8216;draw()&#8217; that returns a image of your animal. Or maybe an iterator interface that lets you treat your object like it is a set.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Mischook</title>
		<link>http://www.killerphp.com/articles/php-interfaces/#comment-1670</link>
		<dc:creator>Stefan Mischook</dc:creator>
		<pubDate>Wed, 10 Jan 2007 15:20:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.killerphp.com/articles/php-interfaces/#comment-1670</guid>
		<description>Hi Hugo,

I've updated it with the full podcast - it is now about 11 minutes.

Sorry about the confusion.

Stefan</description>
		<content:encoded><![CDATA[<p>Hi Hugo,</p>
<p>I&#8217;ve updated it with the full podcast - it is now about 11 minutes.</p>
<p>Sorry about the confusion.</p>
<p>Stefan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hugo</title>
		<link>http://www.killerphp.com/articles/php-interfaces/#comment-1652</link>
		<dc:creator>Hugo</dc:creator>
		<pubDate>Wed, 10 Jan 2007 11:42:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.killerphp.com/articles/php-interfaces/#comment-1652</guid>
		<description>Hi, your podcast seems to abruptly end mid sentence.
The downloaded file is 5 mins long. Is this correct?

Thanks, Hugo</description>
		<content:encoded><![CDATA[<p>Hi, your podcast seems to abruptly end mid sentence.<br />
The downloaded file is 5 mins long. Is this correct?</p>
<p>Thanks, Hugo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Gruber</title>
		<link>http://www.killerphp.com/articles/php-interfaces/#comment-54</link>
		<dc:creator>Eric Gruber</dc:creator>
		<pubDate>Fri, 01 Sep 2006 11:46:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.killerphp.com/articles/php-interfaces/#comment-54</guid>
		<description>Well, I like Quicktime because I have a Mac, and because any movie you make in older versions of QT works with future ones.

Yes, I do find the videos interesting (as well as the mp3s). I really want to learn more about PHP and this is really helping out. Keep up the great work!</description>
		<content:encoded><![CDATA[<p>Well, I like Quicktime because I have a Mac, and because any movie you make in older versions of QT works with future ones.</p>
<p>Yes, I do find the videos interesting (as well as the mp3s). I really want to learn more about PHP and this is really helping out. Keep up the great work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Mischook</title>
		<link>http://www.killerphp.com/articles/php-interfaces/#comment-52</link>
		<dc:creator>Stefan Mischook</dc:creator>
		<pubDate>Thu, 31 Aug 2006 21:00:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.killerphp.com/articles/php-interfaces/#comment-52</guid>
		<description>Hi,

Yes the videos are now embedded.  I will look into format for downloading - do you have a preference?

That said, do you find the video interesting?

Thanks for the feedback.

Stefan</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Yes the videos are now embedded.  I will look into format for downloading - do you have a preference?</p>
<p>That said, do you find the video interesting?</p>
<p>Thanks for the feedback.</p>
<p>Stefan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Gruber</title>
		<link>http://www.killerphp.com/articles/php-interfaces/#comment-51</link>
		<dc:creator>Eric Gruber</dc:creator>
		<pubDate>Thu, 31 Aug 2006 20:43:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.killerphp.com/articles/php-interfaces/#comment-51</guid>
		<description>Sorry, I wasn't more clear.

I noticed the link, but a true podcast has a subscription feature (such as with iTunes or another podcast application) where one can download the actual file and then view it on their computer.

That's what I meant. The videos are still embedded however and can't be downloaded, correct?</description>
		<content:encoded><![CDATA[<p>Sorry, I wasn&#8217;t more clear.</p>
<p>I noticed the link, but a true podcast has a subscription feature (such as with iTunes or another podcast application) where one can download the actual file and then view it on their computer.</p>
<p>That&#8217;s what I meant. The videos are still embedded however and can&#8217;t be downloaded, correct?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Mischook</title>
		<link>http://www.killerphp.com/articles/php-interfaces/#comment-50</link>
		<dc:creator>Stefan Mischook</dc:creator>
		<pubDate>Thu, 31 Aug 2006 05:31:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.killerphp.com/articles/php-interfaces/#comment-50</guid>
		<description>Hi Eric,

At the beginning of this article you will notice a link to the mp3 file.

Thanks for the comments.

Stefan</description>
		<content:encoded><![CDATA[<p>Hi Eric,</p>
<p>At the beginning of this article you will notice a link to the mp3 file.</p>
<p>Thanks for the comments.</p>
<p>Stefan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Gruber</title>
		<link>http://www.killerphp.com/articles/php-interfaces/#comment-49</link>
		<dc:creator>Eric Gruber</dc:creator>
		<pubDate>Thu, 31 Aug 2006 03:53:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.killerphp.com/articles/php-interfaces/#comment-49</guid>
		<description>I like the site and find it informative. I just wish that you had a video/audio podcast instead of whatever embedded format you're using so I didn't have to be hooked up to a web browser/internet to partake.

I'm a take it and go kind of guy. :)</description>
		<content:encoded><![CDATA[<p>I like the site and find it informative. I just wish that you had a video/audio podcast instead of whatever embedded format you&#8217;re using so I didn&#8217;t have to be hooked up to a web browser/internet to partake.</p>
<p>I&#8217;m a take it and go kind of guy. <img src='http://www.killerphp.com/articles/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>
