<?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>Joe's Amazing Technicolor Weblog &#187; framework</title>
	<atom:link href="http://slagwerks.com/blog/index.php/tag/framework/feed/" rel="self" type="application/rss+xml" />
	<link>http://slagwerks.com/blog</link>
	<description></description>
	<lastBuildDate>Fri, 23 Jul 2010 22:31:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>puttering around with Symfony</title>
		<link>http://slagwerks.com/blog/index.php/2008/01/23/puttering-around-with-symfony/</link>
		<comments>http://slagwerks.com/blog/index.php/2008/01/23/puttering-around-with-symfony/#comments</comments>
		<pubDate>Thu, 24 Jan 2008 01:25:04 +0000</pubDate>
		<dc:creator>joe</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://slagwerks.com/blog/index.php/2008/01/23/puttering-around-with-symfony/</guid>
		<description><![CDATA[On advice from Nate, I&#8217;m taking Symfony for a spin (using the stable version 1, not the under-development 1.1), reimplementing the aforementioned contact management application. Here&#8217;s what I&#8217;m&#160;noticing: Somewhat like Rails, there&#8217;s DB-independent schema definition! Big win here. Among other things, this lets you develop in SQLite and deploy in MySQL, which is a nice [...]]]></description>
			<content:encoded><![CDATA[<p>On <a href="http://slagwerks.com/blog/index.php/2007/12/14/first-thoughts-on-cakephp-from-a-rails-perspective/#comment-4035">advice from Nate</a>, I&#8217;m taking <a href="http://www.symfony-project.org/">Symfony</a> for a spin (using the stable version 1, not the under-development 1.1), reimplementing the aforementioned contact management application. Here&#8217;s what I&#8217;m&nbsp;noticing:</p>
<ul>
<li>Somewhat like Rails, there&#8217;s <span class="caps">DB</span>-independent schema definition! Big win here. Among other things, this lets you develop in SQLite and deploy in MySQL, which is a nice pattern. Rails&#8217; awesome migrations aren&#8217;t here, so it&#8217;s not as useful and flexible a system, but it&#8217;s better than nothing for getting up <span class="amp">&amp;</span>&nbsp;running.</li>
<li>One big difference from Rails that&#8217;s clear right away: rather than building code dynamically based on the <span class="caps">DB</span> schema, thousands of lines of getters / setters / etc. are generated by the symfony command line tool. Makes sense for <span class="caps">PHP</span>, but it&#8217;s a clunkier development&nbsp;experience.</li>
<li>There&#8217;s <a href="http://www.symfony-project.org/book/1_0/15-Unit-and-Functional-Testing">testing</a> built in! It&#8217;s a bit of a <span class="caps">PITA</span> to do things like create a test database, and all the pieces for testing your models aren&#8217;t there right away, but still better than CakePHP. The aforementioned missing piece is available as <a href="http://trac.symfony-project.com/wiki/sfModelTestPlugin">a plugin</a>. There doesn&#8217;t seem to be a straightforward way to get the <code>propel-insert-sql</code> task to run on alternate environments, so one must create the db on their own. I&#8217;m using SQLite, which is great, but my local environment somehow ended up with PHP having SQLite 2.8 while my command line is version 3 (macports at fault? what a step backwards from Ubuntu&#8230;). One <code>port install sqlite2</code> later, and you can do <code>sqlite data/test.db &lt;&nbsp;data/sql/lib.model.schema.sql</code></li>
<li>No console, which makes the tests even more essential, so it does seem to be worth the pain of getting them&nbsp;working.</li>
</ul>
<p>Side note&thinsp;&#8212;&thinsp;already, on the basis of the previous post, I&#8217;m seeing a surprising amount of traffic from searches on CakePHP, Symfony, and <span class="caps">REST</span>. Clearly I&#8217;m not the only one looking for this kind of&nbsp;thing.</p>
]]></content:encoded>
			<wfw:commentRss>http://slagwerks.com/blog/index.php/2008/01/23/puttering-around-with-symfony/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
