<?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>Professional PHP &#187; framework</title>
	<atom:link href="http://www.procata.com/blog/archives/tag/framework/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.procata.com/blog</link>
	<description>PHP Programming, Web Development, PHP Advocacy and PHP Best Practices.</description>
	<lastBuildDate>Fri, 10 Dec 2010 17:23:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The value of MVC</title>
		<link>http://www.procata.com/blog/archives/2004/11/28/the-value-of-mvc/</link>
		<comments>http://www.procata.com/blog/archives/2004/11/28/the-value-of-mvc/#comments</comments>
		<pubDate>Mon, 29 Nov 2004 06:01:03 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software Design]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[mvc]]></category>

		<guid isPermaLink="false">http://www.procata.com/blog/archives/2004/11/28/the-value-of-mvc/</guid>
		<description><![CDATA[John Lim has a recent rant asking Is MVC over-designed crap?
I used to think so, but now having refactored some existing applications to use MVC, i see the value.
In my unscientific comparison of PHP and Java Job Markets six of ten java jobs ask for some Struts knowledge.  While I am willing to believe [...]]]></description>
			<content:encoded><![CDATA[<p>John Lim has a recent rant asking <a href="http://phplens.com/phpeverywhere/?q=node/view/143">Is MVC over-designed crap</a>?</p>
<p>I used to think so, but now having refactored some existing applications to use MVC, i see the value.</p>
<p>In my unscientific <a href="http://www.procata.com/blog/archives/2004/10/15/a-comparision-of-the-php-and-java-job-markets/">comparison of PHP and Java Job Markets</a> six of ten java jobs ask for some Struts knowledge.  While I am willing to believe that Java programmers are masochists, one cannot discount the possibility that there is value in its use. </p>
<p>Another way to approach the issue is to look at this <a href="https://equinox.dev.java.net/framework-comparison/">Java framework comparison</a>.  It compares the same CRUD application written in Struts, Spring, JSF, Tapestry, and WebWork.  The thing that I found striking about the comparison was how &#8220;crufty&#8221; the struts implementation was in comparison to the others.  And yet, none of the others were mentioned in my 10 job sampling.  Again, it seems like Struts must bring something to the table.</p>
<p>It is worth remembering that Struts did not originate inside Sun and get pushed out as a bloated vendor standard.  Rather it evolved into a de-facto standard of what MVC means on the web as an open source project.  I think this growth in use is an indication that web MVC has value.</p>
<p>Is there confusion over MVC?  </p>
<p>Yes.  Many of the &#8220;what goes where&#8221; arguments are a bit like trying to count the number of angels that can dance on the head of a pin.  In practice, a 100% separations M, V, and C concerns is almost impossible and not even desirable.  Yet, it turns out that making some kind of distinction between the concerns is helpful.</p>
<p>Adding to the confusion is the fact that most MVC frameworks do more than just MVC.</p>
<p>I tend to find that the broader your definition of MVC, the more trouble you are going to have with the &#8220;what goes where&#8221; and &#8220;where does this go&#8221; questions.  In that light, I tried to write up a fairly strict and complete <a href="http://wact.sourceforge.net/index.php/ModelViewController">definition of Model View Controller</a>.</p>
<p>I like to use an analogy from the GUI era.  If you were writing a GUI application for the Macintosh in 1987, it was hard.  Hello World was 50,000 lines long.  (at least it seemed like it.)  You were responsible for your own event loop and dispatching OS events into your application.  Every application re-invented the wheel.</p>
<p>If you are writing a windows GUI application in 1997, you would use a tool like Visual Basic or Delphi to apply the MVC pattern (well really DocumentView variant) to your GUI applications.  Both tools take the OS event loop (controller) away from the programmer and dictate an application structure.  Trust me, productivity in these environments was leaps and bounds better than the old way.  The emergence of Visual Basic and Delphi in the early 90s were just a sign that programmers were getting a handle on how to write GUI applications</p>
<p>I think we are seeing the same transition now in the web application space.  Web MVC brings a standard structure to web applications, and in a way, once again takes over the OS event interface for web applications.  In 2007, writing a web application without an MVC framework will seem as quaint and be as rare as a polling event loop is today in a GUI application.  The emergence of web MVC frameworks is a sign that we as a profession are mastering the art of building web applications.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.procata.com/blog/archives/2004/11/28/the-value-of-mvc/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>

