<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 22 May 2013 09:27:44 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Gonzalo Ayuso's Blog: PHP Template Engine Comparison. Part 2 (vs Plain PHP)]]></title>
      <guid>http://www.phpdeveloper.org/news/15794</guid>
      <link>http://www.phpdeveloper.org/news/15794</link>
      <description><![CDATA[<p>
Following in the heels of his <a href="http://phpdeveloper.org/news/15748">first post</a> looking at a few of the templating offerings available to PHP applications, <i>Gonzalo Ayuso</i> is back with <a href="http://gonzalo123.wordpress.com/2011/01/24/php-template-engine-comparison-part-2-versus-plain-php/">part two</a> - a comparison versus just "plain PHP".
</p>
<blockquote>
In my <a href="http://gonzalo123.wordpress.com/2011/01/17/php-template-engine-comparison/">last</a> post I created a small (and very personal) test of different templating engines in PHP (Smarty, Haanga and Twiw). Someone posted a comment asking for the comparison between those template engines and old school phtml. OK I've done some tests. It's a bit difficult to create the template inheritance (without cloning one of the template engines and creating a new one) so I have one approximation with a simple include. It's not the same but it's similar.
</blockquote>
<p>
He tries to recreate a similar scenario as in the three other templating tools by setting up a base template (with inline PHP), a class to populate the contents of it and a sample template with "inheritance". He stacks up the execution times and memory usage against the results from the other three with interesting results, specifically compared to <a href="http://www.haanga.org">Haanga</a>.
</p>]]></description>
      <pubDate>Mon, 24 Jan 2011 11:11:07 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Designing Klingon Warships Using Behaviour Driven Development]]></title>
      <guid>http://www.phpdeveloper.org/news/9608</guid>
      <link>http://www.phpdeveloper.org/news/9608</link>
      <description><![CDATA[<p>
The Zend Developer Zone has <a href="http://devzone.zend.com/article/3082-Designing-Klingon-Warships-Using-Behaviour-Driven-Development">another new tutorial</a> from <i>Padraic Brady</i> talking about testing your applications (i.e. unit tests). In this new article, he expands on his <a href="http://devzone.zend.com/article/2772-An-Introduction-to-the-Art-of-Unit-Testing-in-PHP">previous one</a> and dives a bit deeper into the behaviour-driven development process.
</p>
<blockquote>
In this article, I introduce a TDD related practice called Behaviour-Driven Development which has been gathering attention for over a year and gaining converts (like me!).
</blockquote>
<p>
He <a href="http://devzone.zend.com/article/3082-Designing-Klingon-Warships-Using-Behaviour-Driven-Development">briefly covers</a> what BDD is and how it can be used to solidify code against issues that might come up down the road (and how it compares to test-driven development). Some sample code/tests are included to give you a better idea of how it all fits together - a set of scenarios for any given "story". True to the title, <i>Padraic</i> writes his tests around the construction of a Klingon Bird of Prey ship. 
</p>]]></description>
      <pubDate>Mon, 11 Feb 2008 15:34:00 -0600</pubDate>
    </item>
  </channel>
</rss>
