<?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>Sat, 25 May 2013 21:08:56 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DZone.com: The Duck is a Lie]]></title>
      <guid>http://www.phpdeveloper.org/news/18144</guid>
      <link>http://www.phpdeveloper.org/news/18144</link>
      <description><![CDATA[<p>
In <a href="http://css.dzone.com/articles/duck-lie">this recent post</a> to DZone.com <i>Giorgio Sironi</i> looks at duck typing and compares it in a few different languages (PHP, Ruby and Java). "Duck typing" is where the methods/functions define the structure or common interface rather than being functional.
</p>
<blockquote>
What follows is my experience with Java, PHP and Ruby. I mainly use PHP as a dynamic language that supports duck typing but also the definition of Java-like interfaces, but does not force any of the two approaches as you can define interfaces whose method arguments accept any variable or not using interfaces at all. Is duck typing that a revolution?
</blockquote>
<p>
He shares some of the common misconceptions he's seen including the idea that duck typing can help completely different objects work together and that, sometimes, despite naming conventions, functionality was intended to be different. He shows how even interfaces in PHP can be implemented loosely and the "acts as" and "single callback" architecture ideas.
</p>]]></description>
      <pubDate>Wed, 27 Jun 2012 09:55:22 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[The Bakery: Five New Posts - Custom Views, CSS, ViewInFile, ActsAs and Email Validation]]></title>
      <guid>http://www.phpdeveloper.org/news/8566</guid>
      <link>http://www.phpdeveloper.org/news/8566</link>
      <description><![CDATA[<p>
The Bakery has posted five new articles/tutorials for topics like customizing the view and sending emails a little differently:
</p>
<ul>
<li><a href="http://bakery.cakephp.org/articles/view/anything_for_layout-making-html-from-the-view-available-to-the-layout">$anything_for_layout: Making HTML from the View available to the layout</a> - Did you ever have a side navigation that you wanted to change based upon changes in the view? Using this helper, you can write HTML and other output for display in the layout
<li><a href="http://bakery.cakephp.org/articles/view/ul-ol-menu-method-for-helpers">css list-menu helper</a> - A helper (method) to create a css formatable list-menu.
<li><a href="http://bakery.cakephp.org/articles/view/viewinfile-component">ViewInFile component</a> - Sometimes in needed to output a view in a file. Most of the time for debugging, but also for some web service (xml) where you might need to send (by mail as a copy) an xml file reflecting the answer of the webservice.
<li><a href="http://bakery.cakephp.org/articles/view/actas-image-column-behavior">ActAs Image column behavior</a> - This behavior add new column to your model and allow to store images in file system. It can resize images, create several versions, and thubnails. After find model you got link to file for each record in model.
<li><a href="http://bakery.cakephp.org/articles/view/validemail-validation-function">Email Validation</a> - email validation replacement for /cake/libs/validation.php
</ul>
<p>
Check out <a href="http://bakery.cakephp.org">The Bakery</a> for even more great CakePHP-related content.
</p>]]></description>
      <pubDate>Fri, 31 Aug 2007 10:26:00 -0500</pubDate>
    </item>
  </channel>
</rss>
