<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Reflection on Justin Carmony</title>
		<link>https://www.justincarmony.com/tags/reflection/</link>
		<description>Recent content in Reflection on Justin Carmony</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Sun, 20 Sep 2009 18:26:35 +0000</lastBuildDate>
		
			<atom:link href="https://www.justincarmony.com/tags/reflection/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>&#34;Nerfing&#34; a PHP Object</title>
				<link>https://www.justincarmony.com/2009/09/20/nerfing-a-php-object/</link>
				<pubDate>Sun, 20 Sep 2009 18:26:35 +0000</pubDate>
				<guid>https://www.justincarmony.com/2009/09/20/nerfing-a-php-object/</guid>
				<description>&lt;p&gt;I was trying to think of something with PHP I could blog about that would be short and sweet. Then I thought of something that a good friend of my taught me: &lt;strong&gt;nerfing objects&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;The Problem&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Many times while working with PHP and bigger frameworks, you&amp;rsquo;ll have classes that extend classes that extand classes. We have an &lt;a href=&#34;http://en.wikipedia.org/wiki/Object-relational_mapping&#34;&gt;ORM system&lt;/a&gt; that interfaces our Database with PHP classes. This makes accessing and updating information easy for us. So lets say we have a class called &amp;ldquo;Post&amp;rdquo; that stores a blog post. Our ORM class just takes a few lines of code to hook up our &amp;ldquo;Post&amp;rdquo; class to the &amp;ldquo;posts&amp;rdquo; database tables. We just extend our base DataObject, which contains all sorts of references to other class isntances. Long story short, this PHP code is awesome, but there is one issue.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
