<?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:series="http://organizeseries.com/"
		>
<channel>
	<title>Comments on: Mastering Object Oriented PHP</title>
	<atom:link href="http://www.brandonsavage.net/mastering-object-oriented-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brandonsavage.net/mastering-object-oriented-php/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mastering-object-oriented-php</link>
	<description>The personal blog of Brandon Savage. Contains entries of a personal and professional nature focusing on PHP, Apple, LAMP, MySQL and Washington, DC.</description>
	<lastBuildDate>Wed, 15 May 2013 14:54:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.2-alpha</generator>
	<item>
		<title>By: Brandon Savage</title>
		<link>http://www.brandonsavage.net/mastering-object-oriented-php/#comment-6562</link>
		<dc:creator>Brandon Savage</dc:creator>
		<pubDate>Tue, 15 Jan 2013 12:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.brandonsavage.net/?p=1956#comment-6562</guid>
		<description><![CDATA[For years, PHP was largely a procedural language. Object orientation began with PHP 4, and improved in PHP 5. There are a number of reasons why OO PHP is better than procedural; I spend a good bit of time discussing that in my book. The short list is that it makes it easier to test, easier to swap in and out different components, and simpler to maintain.

While you may not share your code base now, I&#039;d bet you that if you&#039;re pursuing PHP professionally in the next five years you will share a code base with somebody. And that will make a huge impact in your thinking process.

As for &quot;getters and setters&quot;, PHP doesn&#039;t require that you define them and doesn&#039;t define them automatically. That&#039;s purely a style thing and you can access object properties with $object-&gt;property as long as they are public.]]></description>
		<content:encoded><![CDATA[<p>For years, PHP was largely a procedural language. Object orientation began with PHP 4, and improved in PHP 5. There are a number of reasons why OO PHP is better than procedural; I spend a good bit of time discussing that in my book. The short list is that it makes it easier to test, easier to swap in and out different components, and simpler to maintain.</p>
<p>While you may not share your code base now, I&#8217;d bet you that if you&#8217;re pursuing PHP professionally in the next five years you will share a code base with somebody. And that will make a huge impact in your thinking process.</p>
<p>As for &#8220;getters and setters&#8221;, PHP doesn&#8217;t require that you define them and doesn&#8217;t define them automatically. That&#8217;s purely a style thing and you can access object properties with $object->property as long as they are public.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KMB</title>
		<link>http://www.brandonsavage.net/mastering-object-oriented-php/#comment-6560</link>
		<dc:creator>KMB</dc:creator>
		<pubDate>Tue, 15 Jan 2013 07:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.brandonsavage.net/?p=1956#comment-6560</guid>
		<description><![CDATA[Imho what OOP in PHP is lacking is a good reason to use it. At least for me. I understand the basics but I am missing one or two good arguments to use it (which would then obviously give me enough incentive to buy your book ;-).

Is it better performance-wise? What&#039;s the advantage over procedural programming besides the &quot;capsules&quot;, which makes using duplicate function-names easier?

The last question could also be described as: On one side I have a nice little function with some arguments I can easily use in the rest of my code-base. On the other side I have to define classes/objects apply a bunch of &quot;uninteresting&quot; functions like setters and getters and suddenly my code-base has expanded manifold.

Please note, that I don&#039;t have to share my code-base with anyone and I am the only one working on it, so there is seldom a need for &quot;capsulating&quot; code.]]></description>
		<content:encoded><![CDATA[<p>Imho what OOP in PHP is lacking is a good reason to use it. At least for me. I understand the basics but I am missing one or two good arguments to use it (which would then obviously give me enough incentive to buy your book ;-).</p>
<p>Is it better performance-wise? What&#8217;s the advantage over procedural programming besides the &#8220;capsules&#8221;, which makes using duplicate function-names easier?</p>
<p>The last question could also be described as: On one side I have a nice little function with some arguments I can easily use in the rest of my code-base. On the other side I have to define classes/objects apply a bunch of &#8220;uninteresting&#8221; functions like setters and getters and suddenly my code-base has expanded manifold.</p>
<p>Please note, that I don&#8217;t have to share my code-base with anyone and I am the only one working on it, so there is seldom a need for &#8220;capsulating&#8221; code.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (Feed is rejected)
Page Caching using disk: enhanced (User agent is rejected)
Object Caching 495/509 objects using apc
Content Delivery Network via Amazon Web Services: S3: brandonsavage-net-files.s3.amazonaws.com

 Served from: www.brandonsavage.net @ 2013-05-23 06:06:01 by W3 Total Cache -->