<?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>Juozas devBlog &#187; cla</title>
	<atom:link href="http://dev.juokaz.com/tag/cla/feed" rel="self" type="application/rss+xml" />
	<link>http://dev.juokaz.com</link>
	<description>Random ideas, scripts and facts</description>
	<lastBuildDate>Mon, 22 Mar 2010 10:48:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Why Zend Framework?</title>
		<link>http://dev.juokaz.com/php/why-zend-framework</link>
		<comments>http://dev.juokaz.com/php/why-zend-framework#comments</comments>
		<pubDate>Mon, 07 Dec 2009 21:01:18 +0000</pubDate>
		<dc:creator>Juozas</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[cla]]></category>
		<category><![CDATA[comparison]]></category>
		<category><![CDATA[consulting]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[scaffolding]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[zend framework]]></category>

		<guid isPermaLink="false">http://dev.juokaz.com/?p=937</guid>
		<description><![CDATA[ As you might have noticed I mostly write about Zend Framework and related content. This has a lot of underlying reasons, so I decided to wrap up my thoughts about it and why to (not)use Zend Framework for your own projects. This is not a comparison of frameworks though, because I don&#8217;t feel like [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-460" title="Zend Framework" src="http://dev.juokaz.com/wp-content/uploads/2009/04/logo-zend-framework.jpg" alt="Zend Framework" width="169" height="114" /> As you might have noticed I mostly write about <a href="http://framework.zend.com/">Zend Framework</a> and related content. This has a lot of underlying reasons, so I decided to wrap up my thoughts about it and why to (not)use Zend Framework for your own projects. This is not a comparison of frameworks though, because I don&#8217;t feel like having enough experiences with other frameworks to make a fare comparison, that&#8217;s why this is going to be only a Zend Framework analysis. </p>
<h5>History</h5>
<p>First time I have actually built an application with <a href="http://dev.juokaz.com/tag/zend-framework">Zend Framework</a> was about a half year ago, if I remember correctly version 1.8 was already around. Although my first applications were more than two years ago, but hey were more than tests and playing with at that time new features. So as I said above, not that long ago I switched most of my company&#8217;s code to use Zend Framework, contributed some code and have also started working as Zend Framework consultant (drop me an email if interested), so I think I have a pretty decent experience to judge it.</p>
<p>Before diving in to the analysis, I would like to clarify, that the reasons why I&#8217;m not using other frameworks are mainly caused by the fact that I didn&#8217;t had a chance to do that. Since I&#8217;m usually working with projects lasting more than 3 months, I need to be confident enough to know that after 2 months I don&#8217;t need to throw everything away and start from scratch. Also to test a framework for me is not to create a <a href="http://en.wikipedia.org/wiki/Hello_world_program">Hello World application</a>, I need to build something serious to know what features are missing and what problems can be a big issue. Nevertheless, I&#8217;m planning to do some research sometime.</p>
<h5>Advantages</h5>
<p>For me the most important piece of software: how <strong>customizable</strong> it is. As you might have noticed from the posts like <a href="dev.juokaz.com/programming/service-layer-in-web-applications">this</a>, I usually work with complex web application and would like to have ability to built it from ground up. Zend Framework was perfect for this, because everything is just a collection of building blocks, literally (or <a href="http://en.wikipedia.org/wiki/Loose_coupling">loosely coupled</a> in proper terms). I really liked that there is no <em>default</em> or even worse required structure and everything can be configured very easily.</p>
<p>Because I&#8217;m also in a position responsible for a whole project, <strong>quality</strong> for me is very important. I don&#8217;t know how other frameworks handle this, but <a href="http://www.zend.com">Zend</a> is pretty serious with what&#8217;s in framework and how the code is maintained. Starting from requirement to sign Contributor License agreement (known as <a href="http://framework.zend.com/wiki/display/ZFPROP/Contributor+License+Agreement">CLA</a>) and requirement of 80% unit-tests coverage, ending with <a href="http://devzone.zend.com/article/10049">bug hunt days</a>. Somehow it helps me to have a confidence to rely on the framework, and backwards compatibility has never been an issue (it&#8217;s <a href="http://devzone.zend.com/article/11364-DevZone-updated-to-Zend-Framework-v1.9.5">surprisingly good</a>).</p>
<p><a href="http://dev.juokaz.com/wp-content/uploads/2009/12/zend2.gif"><img class="alignnone size-medium wp-image-950" title="Zend Framework components" src="http://dev.juokaz.com/wp-content/uploads/2009/12/zend2-300x219.gif" alt="Zend Framework components" width="210" height="153" /></a><strong>Variety of components</strong> and libraries makes development faster because I do not need to search for another library (there is also coding standards problem and a lot of smaller libraries are just a bunch of files, without any clear structure). As of today, I probably have used more than 90% of available components and because they tend to share the same configuration style or just work style, it didn&#8217;t took long to start using them. For example, just last night I converted whole application to use custom routes (one custom route per action) in about 4 hours, without having done it before at all.</p>
<p><strong>Community</strong> is number one best thing of Zend Framework. Apart from contributors, there are thousands of people willing to help and share their knowledge. Usually I hangout in twitter (<a href="http://www.twitter.com/juokaz">here</a>), but there are also IRC channels, mailing lists, forums and many more. I&#8217;m subscribed to hundreds of PHP blogs and from what I can see, Zend Framework articles are most common and usually in a very good quality. For me web applications development is not just writing code, so having a wonderful community really helps.</p>
<h5>Disadvantages</h5>
<p><a href="http://dev.juokaz.com/wp-content/uploads/2009/12/sequence_globale.jpg"><img class="alignnone size-medium wp-image-943" style="float: right; margin-left: 5px;" title="Zend Framework dispatch" src="http://dev.juokaz.com/wp-content/uploads/2009/12/sequence_globale-300x201.jpg" alt="Zend Framework dispatch" width="210" height="141" /></a><strong>Hard to learn</strong>. This is not a problem (any more) for me, but can be tricky when working with others, especially with things like form decorators. Even though Zend Framework has a very good <a href="http://framework.zend.com/manual/en/zend.form.elements.html#zend.form.elements.decorators">documentation</a>, I would say, that used techniques are sometimes not straightforward for starters and can lead to a very bad code. As with example with form decorators, once you <em>get</em> them, work with forms will be a joy, however at first they seem as pointless complication. I guess the best thing is just read the manual properly (<a href="http://en.wikipedia.org/wiki/RTFM">RTFM</a> in more rude words) &#8211; you will benefit later.</p>
<p>For some an issue can be that Zend Framework has <strong>no <a href="http://en.wikipedia.org/wiki/Scaffold_(programming)">scaffolding</a></strong>. In short, scaffolding is a user interface and logic generation based on database description and business logic definitions. If you have used frameworks like <a href="http://www.djangoproject.com/">Django</a> (my favorite for Python, has perfect <a href="http://docs.djangoproject.com/en/dev/intro/tutorial02/">scaffolding</a>), you will miss these things and it can be a first &#8220;brick wall&#8221; for your learning. Zend Framework has <a href="http://framework.zend.com/manual/en/zend.tool.project.html">Zend_Tool</a> component which provides basic project generation (you can customize it easily), but this is pretty much everything.</p>
<p>Connected to the both issues outlined above, Zend Framework in general is sometimes <strong>too much loosely coupled</strong>. Because all the components are just separate classes and out of the box you don&#8217;t get any sort of web application, one might have problems trying to understand what to do with all this <em>stuff</em> at all. It&#8217;s a great feature for me, but for someone not having any experience with Zend Framework it is probably impossible to build application without a help of blogs, books or (my recommendation) manual.</p>
<p>As you might have guessed, the fact that Zend Framework has lots of components also means that there should be enough developers to support them. However, this is not always the case and some components are really <strong>lacking new features or updates</strong>. For example <a href="http://framework.zend.com/manual/en/zend.pdf.html">Zend_Pdf</a> is quite out-dated and not moving as fast as a lot of us would like to. But hey, it&#8217;s an open-source framework, so if you have ideas of how to improve things &#8211; you are free to do, believe <a href="http://framework.zend.com/wiki/display/ZFPROP/Zend_Db_Adapter_Sqlsrv+-+Juozas+Kaziukenas+and+Rob+Allen">me</a>, it&#8217;s a great fun to contribute to such a influential software application. Nevertheless, always evaluate available components and choose what&#8217;s best for your project.</p>
<p>There is also the funny part &#8211; misconceptions and myths. I&#8217;ve just started working on a new article about these, so expect some interesting things very soon.</p>
<h5>Conclusion</h5>
<p>I hope it&#8217;s clear, that most of the advantages and disadvantages are coming from the same root &#8211; depending on what experience you have and what you are looking for Zend Framework can be a good or absolutely awful choice. For me it&#8217;s a perfect tool and currently I have no plans (even though <a href="http://www.symfony-project.org/">Symfony</a> is in my todo list) to use something else, and if you look at things which are coming in version 2.0 of both Doctrine and Zend Framework (yes, they will have integration)&#8230; Simply a good solution for serious work.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.juokaz.com/php/why-zend-framework/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
