<?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, 09 Jul 2008 07:18:55 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[ProDevTips Blog: Fluent Arrays and Strings in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10457</guid>
      <link>http://www.phpdeveloper.org/news/10457</link>
      <description><![CDATA[<p>
On the ProDevTips blog, <i>Henrik</i> has written up an <a href="http://www.prodevtips.com/2008/06/23/fluent-arrays-and-strings-in-php/">extensive tutorial</a> with plenty of code examples on working with something inspired by a few other languages - fluent arrays and strings.
</p>
<blockquote>
I've been working some with jQuery and Ruby lately, as you might know they both have very neat fluent interfaces for writing short and easily understandable code. Especially Ruby's array and string handling should be something that can be done in PHP so I started googling. [...] It's probably very possible that what I'm looking for is already part of some PHP framework or such but I didn't want to spend more time looking than being productive.
</blockquote>
<p>
Based on some Ruby examples, he defines a set of functions that can be use to create these fluent interfaces to the common PHP variable types (contained in a class for easy use). The entire source can be <a href="http://www.prodevtips.com/wp-content/uploads/2008/06/fluent.rar">downloded here</a>.
</p>]]></description>
      <pubDate>Mon, 23 Jun 2008 07:57:18 -0500</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>
