<?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/"
		>
<channel>
	<title>Comments on: The Basics on Using Models and Controllers in PHP</title>
	<atom:link href="http://www.michiknows.com/2008/07/23/the-basics-on-using-models-and-controllers-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.michiknows.com/2008/07/23/the-basics-on-using-models-and-controllers-in-php/</link>
	<description>Insights on the IT world by Michi Kono</description>
	<lastBuildDate>Tue, 09 Feb 2010 12:49:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Michi</title>
		<link>http://www.michiknows.com/2008/07/23/the-basics-on-using-models-and-controllers-in-php/comment-page-1/#comment-14819</link>
		<dc:creator>Michi</dc:creator>
		<pubDate>Sat, 26 Jul 2008 11:57:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.michiknows.com/2008/07/23/the-basics-on-using-models-and-controllers-in-php/#comment-14819</guid>
		<description>I believe my post spends some time discussing why this form is better *over the long term*. The argument is summed up as what happens when later, new features are added? For example, maybe two check boxes... one for &quot;remember my username&quot; one for &quot;remember my password&quot;? Such a case would require you to add a fourth argument into the shorter function. Then maybe later you&#039;ll drop the remember me checkbox and replace it with a captcha, but keep the remember password one. Now do you remove the 3rd argument or do you add a 5th one or maybe shuffle arguments around? This is how spaghetti code evolves. The solution I discuss dramatically mitigates that nonsense. I didn&#039;t make it explicit in my example here, but models can be written to simply accept an array of key value pairs ($_POST). It&#039;s less verbose and a little harder to figure out what is going on behind the scenes (read: you lose some of the benefits of being explicit as I am in my examples), but it is shorter, if that&#039;s what you value.</description>
		<content:encoded><![CDATA[<p>I believe my post spends some time discussing why this form is better *over the long term*. The argument is summed up as what happens when later, new features are added? For example, maybe two check boxes&#8230; one for &#8220;remember my username&#8221; one for &#8220;remember my password&#8221;? Such a case would require you to add a fourth argument into the shorter function. Then maybe later you&#8217;ll drop the remember me checkbox and replace it with a captcha, but keep the remember password one. Now do you remove the 3rd argument or do you add a 5th one or maybe shuffle arguments around? This is how spaghetti code evolves. The solution I discuss dramatically mitigates that nonsense. I didn&#8217;t make it explicit in my example here, but models can be written to simply accept an array of key value pairs ($_POST). It&#8217;s less verbose and a little harder to figure out what is going on behind the scenes (read: you lose some of the benefits of being explicit as I am in my examples), but it is shorter, if that&#8217;s what you value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Van Dijck&#8217;s Guide to Ease &#187; Blog Archive</title>
		<link>http://www.michiknows.com/2008/07/23/the-basics-on-using-models-and-controllers-in-php/comment-page-1/#comment-14818</link>
		<dc:creator>Peter Van Dijck&#8217;s Guide to Ease &#187; Blog Archive</dc:creator>
		<pubDate>Sat, 26 Jul 2008 08:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.michiknows.com/2008/07/23/the-basics-on-using-models-and-controllers-in-php/#comment-14818</guid>
		<description>[...] &#8220;Yes, my version requires the most lines of code, but it is also the easiest to maintain and understand.&#8221; [...]</description>
		<content:encoded><![CDATA[<p>[...] &#8220;Yes, my version requires the most lines of code, but it is also the easiest to maintain and understand.&#8221; [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.207 seconds -->
