<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DeShong.net &#187; PHP</title>
	<atom:link href="http://www.deshong.net/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deshong.net</link>
	<description></description>
	<lastBuildDate>Sat, 28 Jan 2012 17:54:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19719</generator>
		<item>
		<title>Technical New Year’s Resolutions: 2012</title>
		<link>http://www.deshong.net/2012/01/technical-new-years-resolutions-2012/</link>
		<comments>http://www.deshong.net/2012/01/technical-new-years-resolutions-2012/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 21:09:03 +0000</pubDate>
		<dc:creator>Brian DeShong</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[resolutions]]></category>
		<category><![CDATA[todoin2012]]></category>

		<guid isPermaLink="false">http://www.deshong.net/?p=769</guid>
		<description><![CDATA[<a href="http://www.deshong.net/2012/01/technical-new-years-resolutions-2012/" title="Technical New Year’s Resolutions: 2012"></a>I like to do this every year. It&#8217;s a reflect and reset-type of thing for me. Here&#8217;s what I accomplished from last year&#8217;s resolutions: Published another article in php&#124;architect magazine, SELECT * FROM Internet: An Introduction to the Yahoo! Query &#8230;<p class="read-more"><a href="http://www.deshong.net/2012/01/technical-new-years-resolutions-2012/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.deshong.net/2012/01/technical-new-years-resolutions-2012/" title="Technical New Year’s Resolutions: 2012"></a><p>
I like to do this every year.  It&#8217;s a reflect and reset-type of thing for me.  Here&#8217;s what I accomplished from <a href="http://www.deshong.net/2011/01/technical-new-years-resolutions-2011/">last year&#8217;s resolutions</a>:</p>
<ul>
<li>Published another article in <a href="http://www.phparch.com/">php|architect</a> magazine, <a href="http://www.phparch.com/magazine/2011-2/august/">SELECT * FROM Internet: An Introduction to the Yahoo! Query Language</a>.</li>
<li>Gave a talk on the same topic at <a href="http://atlantaphp.org/">Atlanta PHP</a> in February.</li>
<li>Continued to sharpen architecture and development skills.  I&#8217;ve done a fair amount of work with <a href="http://en.wikipedia.org/wiki/Test-driven_development">Test-driven Development</a> this year, which has definitely beefed up my more general design skills.</a>
<li>Built some <a href="http://itunes.apple.com/us/app/half-off-depot-merchant-connect/id467955957?mt=8">more</a> <a href="http://itunes.apple.com/us/app/half-off-depot-mobile/id469528521?mt=8">iOS</a> <a href="http://itunes.apple.com/us/app/floodwatch/id386505889?mt=8">apps</a>, both at work with <a href="http://halfoffdepot.com/">Half Off Depot</a> and some <a href="http://blog.d5gtech.com/">personal</a> projects.</li>
<li>Definitely have spent more time with PHP since my move to Half Off Depot.</li>
</ul>
<p>
I&#8217;ll keep it short.  This year, I want to:</p>
<ul>
<li><strong>Finally release <a href="http://floodwatchapp.com/">FloodWatch</a> for iPad and Mac</strong>.  I&#8217;ve already started the static library.  This should be done in the first half of the year.</li>
<li><strong>Gain a deeper knowledge of PHP 5.3 and 5.4 features</strong>, such as namespaces, closures, and traits.</li>
<li><strong>Beef up my front end development skills.</strong>  I&#8217;ve done front end work for months at a time, but never for a long period of time.  When I take on this kind of work, I enjoy it, but I want to do more of it in a focused manner.  Front end development skills have been my area of weakness for my entire career.  I&#8217;m a back end kind of guy.</li>
<li><strong>Refocus my technical leadership skills.</strong>  I&#8217;ve led a number of <a href="http://store.ovi.com/">large</a> <a href="https://www.turnerresources.com/">projects</a> during my career, and I&#8217;ll get to do more of that in 2012.  As a result, I look forward to really sharpening my technical leadership skills with respect to architecture, technical project management, and driving teams of incredibly talented developers.</li>
<li><strong>Get back on the conference circuit.</strong>  For real this time.</li>
<li><strong>Blog more.</strong>  I&#8217;ve started getting back to this recently.  I&#8217;m going to stick with it.</li>
</ul>
<p>
From where I sit, 2012 is going to be incredible.  2011 was great, but I&#8217;ve got my work cut out for me this year.  It&#8217;s going to be a wild ride.  See you around!
</p>
<p>
What are <em>you</em> going to do in 2012?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deshong.net/2012/01/technical-new-years-resolutions-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento for Big Kids: Use a Consistent Cache Key Prefix</title>
		<link>http://www.deshong.net/2011/12/magento-use-consistent-cache-key-prefix/</link>
		<comments>http://www.deshong.net/2011/12/magento-use-consistent-cache-key-prefix/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 04:18:29 +0000</pubDate>
		<dc:creator>Brian DeShong</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[half off depot]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.deshong.net/?p=725</guid>
		<description><![CDATA[<a href="http://www.deshong.net/2011/12/magento-use-consistent-cache-key-prefix/" title="Magento for Big Kids: Use a Consistent Cache Key Prefix"></a>This is the first in what I hope to be a multi-part series on using Magento.  I&#8217;ve been working with it since June to run one of our core sites at Half Off Depot. During these six months, we have: &#8230;<p class="read-more"><a href="http://www.deshong.net/2011/12/magento-use-consistent-cache-key-prefix/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.deshong.net/2011/12/magento-use-consistent-cache-key-prefix/" title="Magento for Big Kids: Use a Consistent Cache Key Prefix"></a><p>This is the first in what I hope to be a multi-part series on using Magento.  I&#8217;ve been working with it since June to run one of our core sites at Half Off Depot.</p>
<p>During these six months, we have:</p>
<ul>
<li><a href="http://www.weathersmedia.com/">Built</a> <a href="http://caseygipson.com/">an</a> <a href="http://scottrocher.com/">incredible</a> <a href="http://www.linkedin.com/profile/view?id=2834117">team</a>
<li>Had our application servers swap to disk and otherwise go belly up, on numerous occasions</li>
<li>Moved from FastCGI back to mod_php</li>
<li>Tuned Apache a bit to squeeze more out of our application servers</li>
<li>Moved from a single front end webserver to multiple</li>
<li>Introduced MySQL master-slave replication, when the slave actually in use &#8212; it&#8217;s not just a hot backup</li>
<li>Crafted a respectable Magento application deployment process using <a href="https://github.com/capistrano/capistrano/wiki/">Capistrano</a></li>
<li>Cranked out some basic Magento extensions</li>
<li>Run countless sales, built mobile apps, launched new web applications and a private API</li>
</ul>
<p>I don&#8217;t claim to be a Magento expert after only six months (far from it), but I / we have learned a lot during this time.</p>
<p>In this first post, I&#8217;m going to unveil a handy tip:</p>
<p><strong><em>Always use a consistent Magento cache key prefix.</em></strong></p>
<p>This can be done in your <code>app/etc/local.xml</code> file like so:</p>
<pre lang="PHP">&lt;cache&gt;
    ...
    &lt;prefix&gt;foo_&lt;/prefix&gt;
    ...
&lt;/cache&gt;</pre>
<p>Magento performs poorly out of the box.  The crux of this is that its database is based on an <a href="http://en.wikipedia.org/wiki/Entity%E2%80%93attribute%E2%80%93value_model">Entity-Attribute-Value (EAV) data model</a>.  Using <a href="http://pecl.php.net/package/APC">APC</a> is basically a requirement if you do any reasonable amount of traffic, too.  Big red flags, right? Anyways&#8230;</p>
<p>It also uses an aggressive caching model for things like:</p>
<ul>
<li>Front end layout</li>
<li>Blocks of HTML used to render pages</li>
<li>Magento configuration data (because many core application config options are stored in the database)</li>
<li>Translation data</li>
<li>Full page cache</li>
<li>EAV types and attributes</li>
</ul>
<p>Because we run on multiple front end web servers, we have to have a centralized cache.  We use Memcached for this. For example, if someone alters a product in our admin tool, which purges the cache item, the refreshed cache item needs to be available to all front end web servers at the same time. An inconsistency between our front end servers is not acceptable. Hence, the centralized cache.</p>
<p>When using Memcached, Magento uses <code>Zend_Cache_Backend_TwoLevels</code> under the hood because it has to maintain a mapping of cache type to the cache keys that make up the data for that type of cache.  For example, you should be able to purge the layout or block cache without purging the entire set of cached data.  There&#8217;s no sort of partial cache purge out of the box possible with Memcached.  You either mark all items invalidated, or delete what you want to, one key at a time.  In our case, the mapping of cache type to its keys is stored in our MySQL database.  That&#8217;s not ideal, but&#8230;it is what it is for now.</p>
<p>But, here&#8217;s the catch: Magento / <code>Zend_Cache</code> prefixes all cache keys.  If you don&#8217;t define a cache key, Magento uses one that is formed with:</p>
<ol>
<li>Absolute path to your <code>app/etc/</code> directory</li>
<li>MD5 of this path string</li>
<li>First three characters of the MD5 hash value</li>
</ol>
<p>This makes all the sense in the world, right?  Maybe it does for some, but it doesn&#8217;t for us.  We run one web site driven by this single Magento instance.</p>
<p>But, we also have a deployment process centered around Capistrano.  What does this boil down to?</p>
<ol>
<li>Code releases are kept at <code>/foo/bar/site/releases/[YYYYMMDDHHIISS]</code> of when the code was deployed</li>
<li><code>/foo/bar/site/current</code> is a symlink to <code>/foo/bar/site/releases/[YYYYMMDDHHIISS]</code> of the most recent release</li>
</ol>
<p>So, as we deploy code, the absolute path to the <code>app/etc/</code> directory on disk changes!</p>
<p>Thus, when we deploy a new release, we get extremely high cache churn &#8212; the absolute path to the <code>app/etc/</code> directory has changed because we move that <code>current</code> symlink!  We basically were rewriting all of our cache with every release, clobbering our Memcached instances and database.</p>
<p>We had to take the site down for a minute or two and refresh the cache in a controlled environment without many concurrent requests taking place.  Once the cache had been warmed by a single user, all worked well once again.</p>
<p><!-- Well that sucks.  Thanks, Magento. --></p>
<p>Why not, say, throw an exception and barf all over the developer?  Or provide a reasonable, consistent default value?  Don&#8217;t change it as filesystem changes occur.  That&#8217;s not intuitive at all.  If you&#8217;re running multiple sites and need a separate cache prefix, you&#8217;re probably advanced enough that you&#8217;ve considered the implications of your approach already anyway.</p>
<p>So, what&#8217;s the lesson here?  Define your own Magento cache prefix to ensure that it never changes.</p>
<p>Hope you find this helpful! Here are a few more topics that will be coming soon:</p>
<ul>
<li>Deploying Magento to multiple web servers with Capistrano</li>
<li>Centralizing your <code>/media</code> directory</li>
<li>Don&#8217;t touch Core!</li>
<li>Abstraction is for wimps: query the database yourself</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.deshong.net/2011/12/magento-use-consistent-cache-key-prefix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making a move to Half Off Depot</title>
		<link>http://www.deshong.net/2011/06/joining-half-off-depot/</link>
		<comments>http://www.deshong.net/2011/06/joining-half-off-depot/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 02:26:06 +0000</pubDate>
		<dc:creator>Brian DeShong</dc:creator>
				<category><![CDATA[Georgia]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.deshong.net/?p=702</guid>
		<description><![CDATA[<a href="http://www.deshong.net/2011/06/joining-half-off-depot/" title="Making a move to Half Off Depot"></a>I&#8217;m happy to announce that I&#8217;ll be joining Half Off Depot, LLC as Lead Software Architect on June 27th. Half Off Depot is a growing, promising startup here in Atlanta. As you might gather from the name, they&#8217;re in the &#8230;<p class="read-more"><a href="http://www.deshong.net/2011/06/joining-half-off-depot/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.deshong.net/2011/06/joining-half-off-depot/" title="Making a move to Half Off Depot"></a><p>I&#8217;m happy to announce that I&#8217;ll be joining <a href="http://halfoffdepot.com/">Half Off Depot, LLC</a> as Lead Software Architect on June 27th.</p>
<p>Half Off Depot is a growing, promising startup here in Atlanta.  As you might gather from the name, they&#8217;re in the daily deals space, sort of along the lines of Groupon and LivingSocial.  As of this writing, they have been focusing on the Atlanta, Georgia and Knoxville, Tennessee markets.</p>
<p>I&#8217;ll be focusing on a number of areas, both server-side and in the mobile app arena, in addition to helping build the technology team.</p>
<p>This was not an simple decision.  I&#8217;ve been in a Senior Software Development Engineer role at <a href="http://yahoo.com/">Yahoo!</a> since April 2010.  During the first decade of my career, I spent over four years at both Community Connect Inc. (now <a href="http://interactiveone.com/">Interactive One</a>) and Schematic, Inc. (now <a href="http://www.possibleworldwide.com/">Possible Worldwide</a>), both in senior-level roles.  It&#8217;s not my style to leave a position after just over a year; I&#8217;m much more of a long-term kind of guy.  However, as I got deeper into Schematic, I took on much more technical leadership where I was leading projects and directly managing developers, but haven&#8217;t done a lot of that at Yahoo! yet.  I&#8217;ll be able to tap back into that wider range of my skills at Half Off Depot.</p>
<p>My transition to Yahoo! was really about focusing on my passion: architecture and development.  Yahoo! has afforded me some incredible opportunities, especially when it came to exposing me to more technologies outside of the PHP and open source tools I&#8217;ve worked with over the past decade.</p>
<p>Specifically, I&#8217;ve spent a lot of time with <a href="http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjectiveC/Introduction/introObjectiveC.html">Objective-C</a>, Apple frameworks such as UIKit and AppKit, <a href="http://hadoop.apache.org">Hadoop</a>, some <a href="http://www.microsoft.com/mediaroom/">Microsoft Mediaroom</a>, and even <a href="http://developer.yahoo.com/yui/">client-side</a> technologies.  Yahoo! has really helped me expand my skill set and grow as a developer.  I&#8217;ve worked with some incredibly talented, experienced developers.  It&#8217;s been an amazing ride.  I&#8217;m going to miss it!</p>
<p>But, startup life came calling, and it was time to answer.  I could not be more excited to join the Half Off Depot team, and I wish my Yahoo! colleagues the best of luck.  If you ever get the chance to work at Yahoo!, take it!</p>
<p>This is going to be an incredible journey &#8212; I can&#8217;t wait to get started.  Stay tuned!  You&#8217;ll be hearing more from me in the weeks and months ahead, especially as I begin to focus more on PHP, the web, and native mobile application development.</p>
<p><a href="http://halfoffdepot.com/"><img src="http://halfoffdepot.com/skin/frontend/default/default/HOD-nosub-logo.png" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.deshong.net/2011/06/joining-half-off-depot/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Technical New Year&#8217;s Resolutions: 2011</title>
		<link>http://www.deshong.net/2011/01/technical-new-years-resolutions-2011/</link>
		<comments>http://www.deshong.net/2011/01/technical-new-years-resolutions-2011/#comments</comments>
		<pubDate>Fri, 14 Jan 2011 03:39:03 +0000</pubDate>
		<dc:creator>Brian DeShong</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.deshong.net/?p=666</guid>
		<description><![CDATA[<a href="http://www.deshong.net/2011/01/technical-new-years-resolutions-2011/" title="Technical New Year&#039;s Resolutions: 2011"></a>Better late than never, right? I should&#8217;ve done this in December, but at least it&#8217;s only two weeks into the New Year. Last year was a great year. Looking back at my 2010 resolutions, here&#8217;s what I accomplished: Learn a &#8230;<p class="read-more"><a href="http://www.deshong.net/2011/01/technical-new-years-resolutions-2011/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.deshong.net/2011/01/technical-new-years-resolutions-2011/" title="Technical New Year&#039;s Resolutions: 2011"></a><p>
Better late than never, right?  I should&#8217;ve done this in December, but at least it&#8217;s only two weeks into the New Year.
</p>
<p>
Last year was a great year.  Looking back at my 2010 resolutions, here&#8217;s what I accomplished:</p>
<ul>
<li>Learn a new language &#8212; really dove head first into learning Objective-C, along with the Cocoa and UIKit frameworks</li>
<li>Built and released my first iOS app, <a href="http://floodwatchapp.com/">FloodWatch</a></li>
</ul>
<p>
My <a href="/2009/12/technical-new-years-resolutions-2010/">2010 resolutions</a> aside, I also managed to <a href="/2010/03/goodbye-schematic-hello-yahoo">make a move to Yahoo!</a>, start to hone my front end developer skills, do some Java work, learn some <a href="http://hadoop.apache.org/">Hadoop</a> and <a href="http://pig.apache.org/">Pig</a> scripting, learn some <a href="http://lua.org/">Lua</a>, and <a href="/2010/10/barcamp-charleston-2010/">speak at BarCamp Charleston</a>.  It&#8217;s been a busy year!
</p>
<p>
I&#8217;ve been absolutely horrible at blogging over the past year, though.  Two posts in 2010 is just pitiful and sad.  Shame on me.
</p>
<p>
So, given the look back and the year ahead, here&#8217;s what I&#8217;m challenging myself with:</p>
<ul>
<li><b>Blog more:</b> This is the biggest resolution of them all. I really need to write a few blog posts a month on whatever it is that I&#8217;m working on, when I might have something that can and should be shared with a larger potential audience.  More often than not, I complete my tasks at hand and charge ahead to the next ones.  I need to take more time to stop, reflect, and share.</li>
<li><b>Speak at more user groups and conferences:</b> &#8230;this is already in the works, too, with my first 2011 talk at <a href="http://atlantaphp.org/">Atlanta PHP</a> on February 3, 2011. I&#8217;ll be talking on the <a href="http://developer.yahoo.com/yql/">Yahoo! Query Language</a>.</li>
<li><b>Write another article:</b> &#8230;already in the works!  Look for it later in the year.</li>
<li><b>Continue to sharpen my development and architecture skills:</b> I&#8217;ve learned an amazing amount of new things during my time at Yahoo!  I work with some ridiculously smart people, and am constantly learning from them and becoming a better developer because the people in my environment.  I&#8217;m loving every single day in the office where I get to focus on code and architecture.  This one should be a breeze.</li>
<li><b>Read some of the classic programming books again:</b> Classic books like <a href="http://www.pragprog.com/the-pragmatic-programmer">The Pragmatic Programmer</a> and <a href="http://cc2e.com/">Code Complete</a> are great to read every few years to keep yourself grounded and humble.  This should be one of those years for me.</li>
<li><b>Build another app of some sort, iOS, Mac or otherwise:</b> &#8230;have some ideas here, should be totally doable.</li>
<li><b>Spend some more time with PHP:</b> I haven&#8217;t written much PHP since mid-2010, so it&#8217;d be nice to get back to it.  I should contribute to Zend Framework, etc. &#8212; that&#8217;d be a great way to achieve this goal, while contributing to the community at the same time.</li>
<li><b>Get back on the conference circuit:</b> I didn&#8217;t do so well with this in 2010, mostly due to my job change.  I&#8217;d like to get to at least one PHP, OSS, or development conference in 2011.</b></li>
</ul>
<p>
So, that&#8217;s what I&#8217;ll be doing in 2011.  Hopefully I&#8217;ll be here about 50 weeks from now, recounting how I knocked out every single one of these.
</p>
<p>
What are <em>you</em> doing in 2011?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deshong.net/2011/01/technical-new-years-resolutions-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Technical New Year&#8217;s Resolutions 2010</title>
		<link>http://www.deshong.net/2009/12/technical-new-years-resolutions-2010/</link>
		<comments>http://www.deshong.net/2009/12/technical-new-years-resolutions-2010/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 03:43:52 +0000</pubDate>
		<dc:creator>Brian DeShong</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.deshong.net/?p=445</guid>
		<description><![CDATA[<a href="http://www.deshong.net/2009/12/technical-new-years-resolutions-2010/" title="Technical New Year&#039;s Resolutions 2010"></a>I try to do this every year by New Year&#8217;s Eve, but I&#8217;m a little late this year! Reflecting on my 2009 PHP/technical New Year&#8217;s resolutions, I ended up doing pretty well despite some unexpected challenges. Zend_Log_Writer_Mail made it into &#8230;<p class="read-more"><a href="http://www.deshong.net/2009/12/technical-new-years-resolutions-2010/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.deshong.net/2009/12/technical-new-years-resolutions-2010/" title="Technical New Year&#039;s Resolutions 2010"></a><p>I try to do this every year by New Year&#8217;s Eve, but I&#8217;m a little late this year!  Reflecting on my <a href="http://www.deshong.net/2008/12/phptechnical-new-years-resolutions-2009/">2009 PHP/technical New Year&#8217;s resolutions</a>, I ended up doing pretty well despite some unexpected challenges.</p>
<p><a href="http://framework.zend.com/manual/en/zend.log.writers.html#zend.log.writers.mail">Zend_Log_Writer_Mail made it into the standard library</a>, so that takes care of my Zend Framework line item to some extent.  I didn&#8217;t propose anything new, though, but at least it&#8217;s something!</p>
<p>My goal to <a href="http://phparch.com/magazine/index/108">write for php|architect</a> was realized in October with the <a href="http://www.deshong.net/2009/11/publish-or-perish/">publication</a> of &#8220;Make It Mobile with PHP and Open Source Tools.&#8221;</p>
<p>I spoke at <a href="http://mobilecampatlanta.org/">iPhone/Mobile Camp Atlanta 2009</a> with a modified version of <a href="http://www.deshong.net/2008/09/slides-zendcon-2008-rickroll-to-go/">“Rickroll To Go With WURFL, PHP, and Other Open Source Tools”</a>, which was a great, low-stress speaking engagement.  Hopefully it will take place again in 2010, because I&#8217;d love to participate again!</p>
<p>It&#8217;s been a busy but productive year for work-related technical projects as I helped lead a team to re-launch a medium-scale B2B marketing site for a large cable television network.  That went over with a great degree of success.  In 2009, my project roles tended to lean more towards non-development leadership roles, such as Solutions Architect.  Late in the year, I&#8217;ve been acting as the technical lead and a developer, which has been nice.  It looks like I may get to do more architecture and development work in 2010, so that will be a nice shift in gears.</p>
<p>In June, <a href="http://www.flickr.com/photos/bdeshong/sets/72157619246941218/">our daughter, Madeline</a>, was born, which was definitely the highlight of the year.  Then in September, we were affected by the <a href="http://en.wikipedia.org/wiki/2009_Georgia_%28U.S._state%29_floods">2009 Georgia floods</a> when <a href="http://www.flickr.com/photos/bdeshong/sets/72157622428758762/">our house in Austell, GA was flooded</a>.  Then came the <a href="http://www.flickr.com/photos/bdeshong/sets/72157622679374552/">reconstruction</a> and all of the headaches that came with that.  So, the last half of 2009 was a wash&#8230;no pun intended.  <img src='http://www.deshong.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>But, the horrible year of 2009 is now over!  Looking forward to 2010, I&#8217;ve got a few things I want to tackle:</p>
<ul>
<li><strong>Get back on the conference circuit:</strong> I avoided travel in the first half of 2009 due to Madeline&#8217;s arrival.  I had planned to pick things back up in the last half of the year, but the flood kind of complicated those plans.  Hence, I wasn&#8217;t seen at <a href="http://zendcon.com/">ZendCon</a> or <a href="http://www.phparch.com/">php|works</a>.  I want to get back on the conference and speaking circuits in 2010 &#8212; I need to write some new abstracts and manage to speak a few times.  I&#8217;ll be starting in May at <a href="http://atlantaphp.org/">Atlanta PHP</a>, tentatively talking on profiling and optimizing PHP applications with <a href="http://jakarta.apache.org/jmeter/">JMeter</a> and <a href="http://xdebug.org">Xdebug</a>.</li>
<li><strong>Write another article:</strong> I&#8217;d like to maybe write another article, either for <a href="http://phparch.com/">php|architect</a> or some other development- or systems administration-centric magazine.  Writing an article is relatively simple, and gratification comes much sooner than with, say, a large book.  I enjoy using my learnings from the real world to help impart knowledge on the masses, even if it only helps a single person.</li>
<li><strong>Branch out; learn a new language(s):</strong> I consider myself an advanced-to-expert PHP developer.  I&#8217;ve focused on LAMP/<a href="http://blogs.oracle.com/opal/">OPAL</a> development for eight years now.  I&#8217;d love to dabble in other languages such as Java, Ruby, Python, and so on.  I&#8217;m also very rusty with C and C++, and my Objective-C/Cocoa skills could use some more refinement.  I need to set a goal to build a specific, simple application, and build it in as many languages as possible.  The challenge with this is time &#8212; I only have so much of it with work- and family-related commitments, but that&#8217;s what late weekend nights are for, right?  Right?</li>
<li><strong>Release an iPhone app in the App Store:</strong> I&#8217;ve got at least a half a dozen iPhone apps at various stages of completion in my personal SVN repository.  They&#8217;re in need of more thorough ideas, or design, or a little bit of both.  Once I hit a brickwall, I tend to lose momentum.  This year, I need to barrel through those brickwalls and get something released to the public.  I don&#8217;t want to get rich; I just want to be able to take an app from start to finish.  I dropped the ball on this in 2009, so it&#8217;s time to commit to it and get serious.  I may start off slow with a desktop app idea that needs to see the light of day.</li>
</ul>
<p>So, here I am once again: starting a new year with a new set of resolutions.  I can safely say that 2009 has been the most difficult year of my life, but I&#8217;m glad to see that it&#8217;s over, even though it&#8217;s been bittersweet.</p>
<p>With all of this behind me, I&#8217;m re-energized and looking forward to the new challenges that 2010 has in store.  As long as they don&#8217;t involve any natural disasters, I think I can get through this year.</p>
<p>Happy New Year to everyone!  Thank you again for the support you have shown during the ups and downs of 2009, too.  See you all in 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deshong.net/2009/12/technical-new-years-resolutions-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>“Publish or perish”</title>
		<link>http://www.deshong.net/2009/11/publish-or-perish/</link>
		<comments>http://www.deshong.net/2009/11/publish-or-perish/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 01:33:40 +0000</pubDate>
		<dc:creator>Brian DeShong</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[speaking]]></category>
		<category><![CDATA[writing]]></category>

		<guid isPermaLink="false">http://www.deshong.net/?p=424</guid>
		<description><![CDATA[<a href="http://www.deshong.net/2009/11/publish-or-perish/" title="“Publish or perish”"></a>&#8220;&#8216;Publish or perish&#8217; refers to the pressure to publish work constantly to further or sustain a career in academia.&#8221; Many years ago, my old boss at Community Connect Inc. (now Interactive One), Michael Montero, was having an article published in &#8230;<p class="read-more"><a href="http://www.deshong.net/2009/11/publish-or-perish/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.deshong.net/2009/11/publish-or-perish/" title="“Publish or perish”"></a><p>&#8220;<a href="http://en.wikipedia.org/wiki/Publish_or_perish">&#8216;Publish or perish&#8217;</a> refers to the pressure to publish work constantly to further or sustain a career in academia.&#8221;</p>
<p>Many years ago, my old boss at Community Connect Inc. (now <a href="http://www.interactiveone.com/">Interactive One</a>), Michael Montero, was having <a href="http://portal.acm.org/citation.cfm?id=766723.766733">an article</a> published in the <a href="http://portal.acm.org/toc.cfm?id=766723&#038;type=issue">September 2002 issue of Sysadmin Magazine</a>.  Around that time before the article was published, Mike enlightened all of us software developers on the &#8220;publish or perish&#8221; idea &#8212; write articles, speak at conferences, etc. in order to enhance your development career.</p>
<p>I always took that advice to heart.  It made sense to me.  If you&#8217;re good at something, you use your communication skills to better yourself and make yourself known.  Whether it&#8217;s writing an article, writing a book, or speaking at a conference, it&#8217;s important to share your experiences and impart your knowledge to others.</p>
<p>So, that was one of my big goals for the year.  I&#8217;ve done the conference thing for a while now, so <a href="http://www.deshong.net/2008/12/phptechnical-new-years-resolutions-2009/">I wanted to make 2009 the year of writing</a>.  By writing, I mean writing code, and writing an article.  So, by the time this is posted, my <a href="http://phparch.com/">php|architect</a> article, &#8220;Make It Mobile with PHP and Open Source Tools&#8221;</a> will have been published.</p>
<p>I started it early in the year and finished it in mid-April, many months ahead of the deadline.  It&#8217;s basically my &#8220;Rickroll To Go&#8230;&#8221; conference talk, but in a written form.</p>
<p>It&#8217;s not some huge triumph of an article&#8230;it&#8217;s not going to win any awards&#8230;but it&#8217;s representative of a goal I set out to accomplish and succeeded at.</p>
<p>So, if you&#8217;re reading the issue, enjoy!  If you&#8217;re not, <a href="http://phparch.com/magazine/subscribe">go subscribe to php|architect</a>!</p>
<p>Also, special thanks <a href="http://naramore.net/blog/">to</a> <a href="http://www.treelinedesign.com/">my</a> <a href="http://phparch.com/">php|architect</a> <a href="http://mtabini.blogspot.com/">crew</a> for giving me this great opportunity.</p>
<p>I&#8217;d like to do some more writing in 2010 (maybe some non-PHP writing, too?), so maybe you&#8217;ll see me in print again next year.  Thanks for reading!  Please send along any comments, questions or feedback via <a href="mailto:brianNOSPAMFORMEATdeshongDOTnet">email</a> or <a href="http://twitter.com/bdeshong">Twitter</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deshong.net/2009/11/publish-or-perish/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>“Rickroll To Go…” ZendCon Session audio posted!</title>
		<link>http://www.deshong.net/2009/07/rickroll-zendcon-session/</link>
		<comments>http://www.deshong.net/2009/07/rickroll-zendcon-session/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 20:23:38 +0000</pubDate>
		<dc:creator>Brian DeShong</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scalability]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.deshong.net/?p=239</guid>
		<description><![CDATA[<a href="http://www.deshong.net/2009/07/rickroll-zendcon-session/" title="“Rickroll To Go…” ZendCon Session audio posted!"></a>My ZendCon 2008 talk, “Rickroll To Go With WURFL, PHP, and Other Open Source Tools”, was just released at Zend DevZone as ZendCon Sessions episode #23! If you&#8217;re just now finding my blog from there, welcome! And thanks to Eli &#8230;<p class="read-more"><a href="http://www.deshong.net/2009/07/rickroll-zendcon-session/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.deshong.net/2009/07/rickroll-zendcon-session/" title="“Rickroll To Go…” ZendCon Session audio posted!"></a><p>My ZendCon 2008 talk, <a href="http://www.deshong.net/2008/09/slides-zendcon-2008-rickroll-to-go/">“Rickroll To Go With WURFL, PHP, and Other Open Source Tools”</a>, was just released at <a href="http://devzone.zend.com/public/view">Zend DevZone</a> as <a href="http://devzone.zend.com/article/4871-The-ZendCon-Sessions-Episode-23-Rickroll-To-Go-With-PHP-WURFL-and-Other-Open-Source-Tools">ZendCon Sessions episode #23</a>!</p>
<p>If you&#8217;re just now finding my blog from there, welcome!  And thanks to <a href="http://eliw.com/">Eli White</a>, Community Relations Manager for <a href="http://zend.com/">Zend</a>, for selecting it for posting.</p>
<p>You can get all of the relevant info using the links below:</p>
<p><a href="http://www.deshong.net/2008/09/slides-zendcon-2008-rickroll-to-go/" target="_new">Slides and videos of the presentation materials</a><br />
<a href="http://devzone.zend.com/article/4871-The-ZendCon-Sessions-Episode-23-Rickroll-To-Go-With-PHP-WURFL-and-Other-Open-Source-Tools" target="_new">ZendCon Sessions page with audio</a><br />
<a href="http://devzone.zend.com/content/audio/zendcon_sessions/zendcon_sessions_podcast_023.mp3" target="_new">MP3 audio of the presentation</a><br />
<a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=310085132" target="_new">iTunes DevZone podcast</a></p>
<p>Enjoy, and thanks for listening!  Find me on <a href="http://twitter.com/bdeshong">Twitter</a> or <a href="mailto:brianNOSPAM@deshong.net">email me</a> if you&#8217;d like to discuss the materials.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deshong.net/2009/07/rickroll-zendcon-session/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://devzone.zend.com/content/audio/zendcon_sessions/zendcon_sessions_podcast_023.mp3" length="43557296" type="audio/mpeg" />
		</item>
		<item>
		<title>MySQL replication and the sync_binlog option</title>
		<link>http://www.deshong.net/2009/05/mysql-sync-binlog/</link>
		<comments>http://www.deshong.net/2009/05/mysql-sync-binlog/#comments</comments>
		<pubDate>Thu, 28 May 2009 01:16:13 +0000</pubDate>
		<dc:creator>Brian DeShong</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scalability]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[sync_binlog]]></category>

		<guid isPermaLink="false">http://www.deshong.net/?p=217</guid>
		<description><![CDATA[<a href="http://www.deshong.net/2009/05/mysql-sync-binlog/" title="MySQL replication and the sync_binlog option"></a>Recently I&#8217;ve been focusing on MySQL replication for a project at work. On this particular project, I&#8217;m acting in a Solutions Architect role and have been since about September of 2008. Because of my background in systems administration, I tend &#8230;<p class="read-more"><a href="http://www.deshong.net/2009/05/mysql-sync-binlog/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.deshong.net/2009/05/mysql-sync-binlog/" title="MySQL replication and the sync_binlog option"></a><p>Recently I&#8217;ve been focusing on MySQL replication for a project at <a href="http://www.schematic.com/">work</a>.  On this particular project, I&#8217;m acting in a <a href="http://en.wikipedia.org/wiki/Solutions_Architect">Solutions Architect</a> role and have been since about September of 2008.</p>
<p>Because of my background in systems administration, I tend to get myself into situations where I become the Schematic-side sys admin on projects.  This involves things like deployment processes, getting development, staging, and production environments setup, and now, setting up <a href="http://dev.mysql.com/doc/refman/5.0/en/replication.html">MySQL replication</a>.  This is probably because a) I&#8217;m probably bad at delegating these things to others, b) I&#8217;m kinda&#8217; good at it, and c) let&#8217;s be honest, I&#8217;m a control freak, so I like knowing the servers hosting my apps are setup in a meticulous manner.</p>
<p>In short, we&#8217;re running MySQL 5.0.45 on RedHat Enterprise Linux 5 (I know, I know&#8230;RedHat and MySQL 5.0&#8230;boo&#8230;but it&#8217;s okay).  We&#8217;re required to replicate our production database to a secondary machine for backup purposes.  This way, if our production server dies, we can manually failover to the slave (once we enable writes to it, of course), then swap the two back once the production server is back up.</p>
<p>All in all, this site is rather low-traffic at around 20,000 dynamic page views per day.  Factoring in US-based users in an 11 hour time period, that&#8217;s about 1,800 request per hour, or right around 0.5 page views per second.  We&#8217;ve got a single server in production that&#8217;s acting as our webserver and database server; it&#8217;s got a RAID array in it that was all setup by the group hosting the application (so I don&#8217;t know tons about it, but it&#8217;s new, quality hardware).</p>
<p>I&#8217;m using my master database for reads and writes in Production.  Again, the slave is really only required for live backup-type purposes.</p>
<p>Now, I&#8217;m no expert on MySQL replication, but I&#8217;ve learned a lot these past few weeks.  So I&#8217;m going to share one big caveat here.  Please correct me as you see fit!</p>
<p>MySQL&#8217;s got a <a href="http://dev.mysql.com/doc/refman/5.0/en/replication-options-binary-log.html#sysvar_sync_binlog">sync_binlog</a> configuration option.  You typically set it in my.cnf, and its value is an integer from 0-n.  This value determines how many <a href="http://dev.mysql.com/doc/refman/5.0/en/binary-log.html">binary log</a> writes need to occur before its contents are flushed out of the buffer and onto disk.  With it set to zero, your operating system just determines when the buffer is flushed to disk.</p>
<p>I have a database migration process that copies table structures and their data from PostgreSQL into MySQL, then basically migrates that data into the appropriate tables in the new MySQL instance.  It involves the transformation of a lot of data.  It&#8217;s a sizable, complete data set for 8+ year old system that&#8217;s not the prettiest, best normalized data model in the world.</p>
<p>Per recommendations in <a href="http://www.amazon.com/High-Performance-MySQL-Jeremy-Zawodny/dp/0596003064/ref=sr_1_2?ie=UTF8&#038;s=books&#038;qid=1243472126&#038;sr=8-2">High Performance MySQL</a>, <strong>I had my <code>sync_binlog</code> value set to 1 in Production</strong>.</p>
<p><strong>When I was performing a test migration to Production recently, the process took about 3 hours.</strong>  Wow.  Thanks, MySQL!  It normally takes about 90 minutes in Staging, if that.</p>
<p>In digging around Google and MySQL.com, I found that a non-zero value for <code>sync_binlog</code> causes more disk seeks to flush the binary log to disk.  The benefit of having it set to <code>1</code> is so that every transaction can be written to the binary log, which is then flushed to disk upon commit.  Then, if your server happens to die, the last completed transaction will always be present in the binary log on disk, so you never have to worry about, say, missing a transaction replay on your slaves.  However, this results in a lot more disk activity on your master.</p>
<p>I set <code>sync_binlog</code> to <code>0</code> and re-ran my migration.  It ran in 90 minutes &#8212; <strong>that&#8217;s a 50% performance gain</strong>!  Now, if you do the math, this makes sense.  It&#8217;s one less disk seek and write per-transaction, so this result totally makes sense.  Hooray for numbers, right?</p>
<p>I&#8217;m willing to gamble the integrity of data on my slave for the 50% performance increase.  <small>(remind me of this post in 6 months when I&#8217;m kicking myself over this for some reason, okay?)</small></p>
<p>With no binary logging enabled (i.e. in our dev environment), this process takes about 20 minutes.  This makes sense &#8212; far less disk writes during the process.</p>
<p>Another way to workaround this would be to keep your binary logs on a physically separate disk.  However, I don&#8217;t have that luxury at this point, so that&#8217;s not an option for me.  If I had my druthers, this is how I&#8217;d handle the problem, but&#8230;no dice for now.</p>
<p>Anyways, my main point: if you are willing to gamble with every single transaction being replicated to your slave in the event of a crash, perhaps you can set <code>sync_binlog</code> to <code>0</code>.  If you&#8217;ve got a separate disk to devote to your binary log, by all means, set it to <code>1</code>!  There are other concerns around this are related to battery-backed disk cache, which you can read a bit more about in <a href="http://www.mysqlperformanceblog.com/2006/05/27/jeremy-cole-on-mysql-replication/">Jeremy Cole&#8217;s post</a> on MySQL replication.  You can also see some handy <a href="http://www.mysqlperformanceblog.com/2006/05/19/group-commit-and-xa/">benchmarks</a> that compare MySQL with and without binary logging.</p>
<p>Finally, I&#8217;ll admit this is a bit of a knee-jerk reaction post.  I&#8217;ve done a bunch of research on this, but it&#8217;s not all quite fleshed out in my mind yet.  I get the whole cause and effect in theory, but I haven&#8217;t dug into MySQL source or other materials to <em>really</em> understand what&#8217;s going on behind the scenes.</p>
<p>MySQL replication is a tricky thing.  It&#8217;s great when it works, but understand that there are overhead tradeoffs in using it!  I&#8217;m sure I&#8217;ll learn more in the weeks and months following our launch, so I look forward to sharing more of my successes and/or pains on this.  Comments, feedback, and flames such as &#8220;OMG, you&#8217;re so wrong Brian!&#8221; and &#8220;Brian is a n00b!&#8221; are welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deshong.net/2009/05/mysql-sync-binlog/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>“Rickroll…” goes to print with php&#124;architect!</title>
		<link>http://www.deshong.net/2009/01/rickroll-goes-to-print-with-phparchitect/</link>
		<comments>http://www.deshong.net/2009/01/rickroll-goes-to-print-with-phparchitect/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 03:23:14 +0000</pubDate>
		<dc:creator>Brian DeShong</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[mta]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php|architect]]></category>
		<category><![CDATA[transcoding]]></category>
		<category><![CDATA[wurfl]]></category>

		<guid isPermaLink="false">http://www.deshong.net/?p=180</guid>
		<description><![CDATA[<a href="http://www.deshong.net/2009/01/rickroll-goes-to-print-with-phparchitect/" title="“Rickroll…” goes to print with php|architect!"></a>One of my accomplishments during 2008 was preparing and presenting a new talk, &#8220;Rickroll To Go With WURFL, PHP, and Other Open Source Tools&#8221;. This talk focused on some of the challenges with delivering content to mobile device users, such &#8230;<p class="read-more"><a href="http://www.deshong.net/2009/01/rickroll-goes-to-print-with-phparchitect/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.deshong.net/2009/01/rickroll-goes-to-print-with-phparchitect/" title="“Rickroll…” goes to print with php|architect!"></a><p>One of my accomplishments during 2008 was preparing and presenting a new talk, <a href="http://www.deshong.net/2008/09/slides-zendcon-2008-rickroll-to-go/">&#8220;Rickroll To Go With WURFL, PHP, and Other Open Source Tools&#8221;</a>.  This talk focused on some of the challenges with delivering content to mobile device users, such as limited bandwidth, limited resources on the device, and varying device support for video and audio formats.  It illustrated how to use tools such as the <a href="http://pecl.php.net/imagick/">imagick extension</a> and <a href="http://ffmpeg.org/">FFmpeg</a> to deliver content and an experience that was optimized for mobile devices.
</p>
<p>
Or, another way to refer to it: if you were ever at a PHP conference and heard of some dude Rickrolling a group during his talk, that was me.
</p>
<p>I gave this talk at <a href="http://atlantaphp.org/">Atlanta PHP</a>, <a href="http://www.zendcon.com/ZendCon08/public/schedule/detail/123">ZendCon 2008</a> and <a href="http://phpappalachia.org/">PHP Appalachia</a>, and received positive reception and feedback in all cases.
</p>
<p>
Now, in trying to knock out my <a href="http://www.deshong.net/2008/12/phptechnical-new-years-resolutions-2009/">New Year&#8217;s resolutions</a>, I am adapting this talk into an article for <a href="http://phparch.com/">php|architect</a>, which will be published around October 2009.
</p>
<p>
I&#8217;ve only got 3,000 words to work with, so I may not be able to address all three major content areas &#8212; images, video, and audio &#8212; but I&#8217;ll do what I can.  The <a href="http://www.phparch.com/c/phpa/magazine/about/authors,editorial_calendar">focus of the issue</a> will be &#8220;graphic manipulation,&#8221; so focusing on the image portion may end up making the most sense given the word limitations.  You don&#8217;t want to read more than 3,000 words worth of my ramblings anyway.
</p>
<p>
So, keep your eyes open for that issue later in the year!  Also, special thanks to <a href="http://naramore.net/blog/">Elizabeth Naramore</a>, <a href="http://www.treelinedesign.com/">Beth</a> <a href="http://twitter.com/e3BethT">Tucker Long</a>, and <a href="http://mtabini.blogspot.com/">Marco Tabini</a> for the opportunity to grace the pages of their fantastic publication with my words, ideas, and experience.
</p>
<p>
Also, another special thanks to my co-workers JP Crevoiserat and <a href="http://www.josephjorgensen.com/">Joseph Jorgensen</a> who worked with me on a project that inspired the talk and this article.  And as always, a special thanks for <a href="http://schematic.com/">Schematic</a> for always supporting the community-related efforts of its employees.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deshong.net/2009/01/rickroll-goes-to-print-with-phparchitect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Factory Method pattern; ATLPHP tonight!</title>
		<link>http://www.deshong.net/2009/01/factory-method-pattern-atlphp-tonight/</link>
		<comments>http://www.deshong.net/2009/01/factory-method-pattern-atlphp-tonight/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 21:59:51 +0000</pubDate>
		<dc:creator>Brian DeShong</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[design patterns]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.deshong.net/?p=169</guid>
		<description><![CDATA[<a href="http://www.deshong.net/2009/01/factory-method-pattern-atlphp-tonight/" title="Factory Method pattern; ATLPHP tonight!"></a>I&#8217;ll be giving a &#8220;mini-talk&#8221; on the Factory Method pattern at Atlanta PHP this evening. Who doesn&#8217;t love the Factory Method pattern, right? Good stuff. A link to a PDF of the slides is below. I struggled to come up &#8230;<p class="read-more"><a href="http://www.deshong.net/2009/01/factory-method-pattern-atlphp-tonight/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.deshong.net/2009/01/factory-method-pattern-atlphp-tonight/" title="Factory Method pattern; ATLPHP tonight!"></a><p>I&#8217;ll be giving a &#8220;mini-talk&#8221; on the <a href="http://en.wikipedia.org/wiki/Factory_method_pattern">Factory Method pattern</a> at <a href="http://atlantaphp.org/">Atlanta PHP</a> this evening.
</p>
<p>
Who doesn&#8217;t love the Factory Method pattern, right?  Good stuff.  A link to a PDF of the slides is below.  I struggled to come up with a cool example, but an one related to cars was the best that I could do.  You&#8217;ll find some PHP-specific example code in the slides, too.
</p>
<p>
<a href="http://brian.deshong.net/talks/2009/atlphp/factory_method_pattern/factory_method_pattern.pdf">Grab the slides (PDF)</a>
</p>
<p>
For further reading on the Factory Method pattern and other classic design patterns, you can always grab a copy of <a href="http://www.amazon.com/Design-Patterns-Object-Oriented-Addison-Wesley-Professional/dp/0201633612/ref=pd_bbs_sr_1?ie=UTF8&#038;s=books&#038;qid=1231451809&#038;sr=8-1">Design Patterns: Elements of Reusable Object-Oriented Software</a>.  Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deshong.net/2009/01/factory-method-pattern-atlphp-tonight/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

