<?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>Tue, 06 Jan 2009 09:06:50 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Stubbles Blog: State of annotations in the PHP world]]></title>
      <guid>http://www.phpdeveloper.org/news/11380</guid>
      <link>http://www.phpdeveloper.org/news/11380</link>
      <description><![CDATA[<p>
In <A href="http://www.stubbles.org/archives/54-State-of-annotations-in-the-PHP-world.html">this new post</a> to the Stubbles blog <i>Frank Kleine</i> looks at the current state of annotations in the PHP language and applications.
</p>
<blockquote>
Annotations are a really helpful feature in present-day development. An annotation is a special form of syntactic metadata that can be added to source code elements such as classes, methods, properties and parameters. They do not affect the program semantic directly, but can be used by tools and libraries to handle such annotated code in a certain way.
</blockquote>
<p>
He notes that, as of right now, PHP doesn't naively support anything like this but that there are additional libraries that can be used to augment the standard PHP performance and use them (like a feature in <a href="http://www.phpunit.de">PHPUnit</a> with @assert and @test). He also go through several of the other libraries that make it possible including <a href="http://www.stubbles.org/exit.php?url_id=358&entry_id=54">Addendum</a>, <a href="http://www.stubbles.org/exit.php?url_id=363&entry_id=54">FLOW3</a> and the <a href="http://www.stubbles.org/exit.php?url_id=368&entry_id=54">XP-Framework</a>.
</p>]]></description>
      <pubDate>Mon, 10 Nov 2008 13:32:59 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Mike Naberezny's Blog: Better PHPUnit Group Annotations]]></title>
      <guid>http://www.phpdeveloper.org/news/8585</guid>
      <link>http://www.phpdeveloper.org/news/8585</link>
      <description><![CDATA[<p>
<i>Mike Naberezny</i> has <a href="http://mikenaberezny.com/archives/79">posted about</a> some improvements that were made to the <a href="http://www.phpunit.de">PHPUnit</a> testing software lately (<a href="http://www.phpdeveloper.org/news/8581">support for TestNG-style groupings</a>) and how, with a few of his own suggestions it was made a bit more flexible.
</p>
<blockquote>
At <a href="http://maintainable.com/">my company</a>, we typically organize our test case classes into high-level groups such as unit and functional. Method-level group annotations are inconvenient for us because we'd need to annotate every method of every test case class.
</blockquote>
<p>
He <a href="http://mikenaberezny.com/archives/79">includes an example</a> of their use - commenting a testing class and running it through the phpunit command line tool with a call to the testing group's name.
</p>]]></description>
      <pubDate>Thu, 04 Sep 2008 21:48:39 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stubbles Blog: More PHP6 Wishlist Talk (Annotations)]]></title>
      <guid>http://www.phpdeveloper.org/news/7354</guid>
      <link>http://www.phpdeveloper.org/news/7354</link>
      <description><![CDATA[<p>
<i>Frank</i> and <i>Stehpan</i> has posted <a href="http://www.stubbles.org/archives/8-My-wishlist-for-PHP-6,-pt3-Annotations.html">two</a> <a href="http://www.stubbles.org/archives/9-Wishlist-pt-3-opposed-specifications-instead-annotations.html">more</a> items in their "PHP6 wishlist" series" today - both mentioning annotations.
</p>
<p>
In <a href="http://www.stubbles.org/archives/8-My-wishlist-for-PHP-6,-pt3-Annotations.html">Stephan's post</a>:
<blockquote>
Porting JavaDoc comments to PHP was one of the best things, that ever happened to to PHP4. But like in Java 4, the DocBlocks in PHP evolved from plain documentation to a feature that adds meta information to classes, methods, properties and variables. IDEs, like Zend Studio, use the @var tag to enable type hinting for method return values, which would not possible without the DocBlock, as PHP is a dynamic languages.
</blockquote>
<p>
And from <i>Frank</i>:
</p>
<blockquote>
In <a href="http://www.stubbles.org/archives/8-My-wishlist-for-PHP-6,-pt3-Annotations.html">part three of his wishlist</a> for PHP 6 Stephan wrote that he would like to see annotations built into PHP 6 directly. I disagree with him about that. Annotations can be done in userland, without any problems. He already gave some examples of projects that accomplished this task. But if you look at them you see that every project has a different solution on how to implement annotations for PHP which leads to the problem that if you use different projects in your own application you have to handle all their ways of treating annotations. Annoying, isn't it?
</blockquote>]]></description>
      <pubDate>Tue, 27 Feb 2007 13:02:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Stubbles Blog: Two New PHP6 Wishlist Items]]></title>
      <guid>http://www.phpdeveloper.org/news/7321</guid>
      <link>http://www.phpdeveloper.org/news/7321</link>
      <description><![CDATA[<p>
Launching off from <a href="http://www.phpdeveloper.org/news/7309">this previous post</a> on the Stubbles Blog, two more posts (from two other developers) have been posted on the same subject:
<ul>
<li>In <a href="http://www.stubbles.org/archives/6-Wishlist-pt1-extended-more-type-hints.html">this new post</a>, <i>Frank Kleine</i> takes things a step further and talks about the same kind of type hinting but for more types - including arrays and objects. Examples of how he'd expect things to work followed.
<li><a href="http://www.stubbles.org/archives/7-My-wishlist-for-PHP-6,-pt2-Namespaces.html">The other post</a> is from <i>Stephan Schmidt</i> again and varies slightly off into the world of Namespaces to be included in PHP6 along with the use of annotations.
</ul>
Be sure to check out the comments <a href="http://www.stubbles.org/archives/6-Wishlist-pt1-extended-more-type-hints.html">on</a> <a href="http://www.stubbles.org/archives/7-My-wishlist-for-PHP-6,-pt2-Namespaces.html">each</a> for some more interesting tidbits...
</p>]]></description>
      <pubDate>Wed, 21 Feb 2007 10:29:00 -0600</pubDate>
    </item>
  </channel>
</rss>
