<?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>Mon, 08 Sep 2008 05:43:43 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Lorna Mitchell's Blog: PHP REST Server (Part 3 of 3)]]></title>
      <guid>http://www.phpdeveloper.org/news/10974</guid>
      <link>http://www.phpdeveloper.org/news/10974</link>
      <description><![CDATA[<p>
<i>Lorna Mitchell</i> has posted <a href="http://www.lornajane.net/posts/2008/PHP-Rest-Server-part-3-of-3">the last part</a> of her development process towards creating a sample REST server in PHP:
</p>
<blockquote>
This is part 3 of my article about writing a restful service server. If you haven't already, you might like to read <a href="http://www.lornajane.net/posts/2008/PHP-Rest-Server-part-1-of-3">part 1</a> (covering the core library and grabbing the information we need from the incoming request) and <a href="http://www.lornajane.net/posts/2008/PHP-Rest-Server-part-2-of-3">part 2</a> (covering the service handler itself) before reading this section. This part covers the Response object that I used to return the data to the user in the correct format.
</blockquote>
<p>
She show how she created the object to push the response back out to the client with an output() method that displays the XML response in a manually generated format.
</p>]]></description>
      <pubDate>Fri, 05 Sep 2008 12:55:48 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[David Otton's Blog: Neat PHP tricks: Casting Arrays to Objects]]></title>
      <guid>http://www.phpdeveloper.org/news/10834</guid>
      <link>http://www.phpdeveloper.org/news/10834</link>
      <description><![CDATA[<p>
<i>David Otton</i> has a <a href="http://www.otton.org/2008/08/14/neat-php-tricks-casting-arrays-to-objects/">handy little tip</a> if you're looking for a cleaner way to deal with array data - casting it to an object.
</p>
<blockquote>
Array notation is fine, but it can look a bit clunky when you're working with complex structures. [...] Casting the array to an object allows us to use object notation (->) and makes the code more readable.
</blockquote>
<p>
He includes examples of the casting, showing the difference between the array and object notations including a method for creating an object based on a simple array that has basic properties built in. This sort of transformation can be useful if you want consistency through out the application - just passing objects with their properties rather than arrays.
</p>]]></description>
      <pubDate>Thu, 14 Aug 2008 13:38:10 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Havard Eide's Blog:  SplObjectStorage]]></title>
      <guid>http://www.phpdeveloper.org/news/10662</guid>
      <link>http://www.phpdeveloper.org/news/10662</link>
      <description><![CDATA[<p>
<i>Havard Eide</i> has a <a href="http://eide.org/2008/07/21/splobjectstorage/">recent post</a> to his blog that looks at a part of the Standard PHP Library (SPL) that can be used with objects to store them for later use - SplObjectStorage.
</p>
<blockquote>
In this post I will look at SplObjectStorage: a container that allows to store objects uniquely without the need to compare them one by one.
</blockquote>
<p>
He lets the code to most of the talking, showing how to do the standard operations for a data store - adding objects (both unique and the same), updating objects in the store, checking to see if an object is already added and removing an object from storage.
</p>]]></description>
      <pubDate>Wed, 23 Jul 2008 08:47:44 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Eran Galperin's Blog: Common misconceptions in web application development]]></title>
      <guid>http://www.phpdeveloper.org/news/10644</guid>
      <link>http://www.phpdeveloper.org/news/10644</link>
      <description><![CDATA[<p>
<i>Eran Galperin</i> has a few <a href="http://www.techfounder.net/2008/07/20/common-misconceptions-in-web-application-development/">misconceptions in web development</a> posted to his blog today (for both front and back-end development).
</p>
<p>Here's his list:</p>
<ul>
<li>OO code is less performant than procedural code
<li>The backend is the most important part of development
<li>Graphical designers are good at user interface design
<li>The existence of a superior programming language
<li>XML is more economic than a DB
</ul>
<p>
While the others touch on some topics that could be PHP related, he focuses on it in #1. He points out that sometimes making classes and objects and interfaces and...well, you get the idea...is just too much and that procedural code can be the quick hit you need.
</p>]]></description>
      <pubDate>Mon, 21 Jul 2008 09:37:07 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPImpact Blog: Static Factories vs Public Constructors]]></title>
      <guid>http://www.phpdeveloper.org/news/10638</guid>
      <link>http://www.phpdeveloper.org/news/10638</link>
      <description><![CDATA[<p>
On the PHP::Impact blog <i>Federico Cargnelutti</i> has <a href="http://phpimpact.wordpress.com/2008/07/17/static-factories-vs-public-constructors/">posted a comparison</a> of using static factory methods to create an instance of a class versus making an object, calling the constructor.
</p>
<blockquote>
Normally, creating an instance of a class is done by calling new, which calls the constructor. Static factory provides a static method that returns an instance of the class. So, you are using static factory instead of the constructor. Providing a static factory method instead of a public constructor has both advantages and disadvantages.
</blockquote>
<p>
He includes some of the advantages of the factory method and others for the normal call to create an object. He also mentions some comments made by <i>Dagfinn Reiersol</i> in <a href="http://www.reiersol.com/blog/1_php_in_action/archive/34_public_constructors_considered_harmful.html">a blog post</a> about public constructors.
</p>]]></description>
      <pubDate>Fri, 18 Jul 2008 12:58:31 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer Tutorials Blog: Getting Started with ORM in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10616</guid>
      <link>http://www.phpdeveloper.org/news/10616</link>
      <description><![CDATA[<p>
A <a href="http://www.developertutorials.com/blog/php/getting-started-with-orm-in-php-331/">recent post</a> on the Developer Tutorials blog takes a look at a fundamental part of several of the PHP (and other language) frameworks out there - the Object Relational Mapping (ORM) layer for database access.
</p>
<blockquote>
Instead of direct database access, an ORM layer in a PHP framework can make "objects" stored in a database behave like actual objects from a programming perspective - for example, creating a new "car" stored in the database could involve a call to $car->new(). By abstracting actual database access, web development can be more productive and result in more reliable applications. Here's a quick intro to ORM in PHP.
</blockquote>
<p>
They <a href="http://www.developertutorials.com/blog/php/getting-started-with-orm-in-php-331/">talk about</a> ORM's role in how applications interface with data (abstracted out to objects) and some examples of it in current frameworks - <a href="http://www.cakephp.org">CakePHP</a> and <a href="http://www.symfony.com">Symfony</a>.
</p>]]></description>
      <pubDate>Wed, 16 Jul 2008 09:35:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[International Stock Exchange Forum: Getting RSS Feeds into Lively]]></title>
      <guid>http://www.phpdeveloper.org/news/10581</guid>
      <link>http://www.phpdeveloper.org/news/10581</link>
      <description><![CDATA[<p>
Just for you Lively early adopters out there, there's <a href="http://www.intlstockexchange.com/punbb/viewtopic.php?id=361">a script</a> that's been posted to the International Stock Exchange forum showing how to get a feed into the virtual world.
</p>
<blockquote>
Here is a free PHP script to convert the titles of a news feed to a PNG graphic for display in Google Lively.  To display a news feed in Google Lively, go to the "Add object" button, search for "Picture Frame".  Click on add to room and then edit properties.  In Gadget Options place the url of the PHP script in the option box.
</blockquote>
<p>
The script can then be hosted on a web server where it can pull down the latest stories and update the PNG image accordingly.
</p>]]></description>
      <pubDate>Thu, 10 Jul 2008 15:28:09 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Andy Frey's Blog: JavaScript PHP Remoting Demonstration]]></title>
      <guid>http://www.phpdeveloper.org/news/10504</guid>
      <link>http://www.phpdeveloper.org/news/10504</link>
      <description><![CDATA[<p>
<i>Andy Frey</i> dropped us a line to tell us about a <a href="http://onesandzeros.biz/jsphpremoting/">method he's come up with</a> to make a remoting interface between Javascript and PHP5.
</p>
<blockquote>
This is a demonstration of a very fast and easy way to build AJAX-type applications where communications between JavaScript on the client side and PHP5 on the server side is ideal. This library makes development of such systems fast and very simple.
</blockquote>
<p>
In <a href="http://onesandzeros.biz/jsphpremoting/">his example</a> he shows how to create the PHP and Javascript functions that let the service talk back and forth. He defines a simple "Hello World" style application to show how it would be structured. He also includes a bit of more complex that has other functionality - getting a value out of an array and returning a property/private variable from the backend class.
</p>]]></description>
      <pubDate>Sat, 28 Jun 2008 16:22:17 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Book Review: Object-Oriented Programming with PHP5]]></title>
      <guid>http://www.phpdeveloper.org/news/10474</guid>
      <link>http://www.phpdeveloper.org/news/10474</link>
      <description><![CDATA[<p>
The Zend Developer Zone has published <a href="http://devzone.zend.com/article/3618-Book-Review-Object-Oriented-Programming-with-PHP5">a new book review</a> covering the Packt Publishing book from <i>Hasin Hayder</i>, "Object-Oriented Programming with PHP5".
</p>
<blockquote>
The book does a decent job of covering the main OOP topics in PHP; as well as, touching upon some of the peripheral ones. Hayder devotes whole chapters to such topics as unit testing, design patterns, XML, SPL, and working with databases.
</blockquote>
<p>
<a href="http://devzone.zend.com/article/3618-Book-Review-Object-Oriented-Programming-with-PHP5">The review</a> talks about the "Good", the "Bad" and the "Ugly" of the book ranging from the good code examples and the chapter on the SPL down to the flawed version of the Singleton used and the lack of commentary/explanations around the code.
</p>]]></description>
      <pubDate>Tue, 24 Jun 2008 11:14:28 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans' Blog: PHP Vikinger 2008 Wrap-up]]></title>
      <guid>http://www.phpdeveloper.org/news/10461</guid>
      <link>http://www.phpdeveloper.org/news/10461</link>
      <description><![CDATA[<p>
<i>Derick Rethans</i> has <a href="http://derickrethans.nl/php_vikinger_2008_wrapup.php">posted his wrapup</a> of this year's <a href="http://phpvikinger.org/">PHP Vikinger</a> event held in Skien, Norway. Here's some of what happened during the one-day event:
</p>
<blockquote>
PHP Vikinger is over again. With about 35 attendees, I would think it was a great success. After opening the event, we figured out which topics people were interested in. After voting for the topics, we came up with a nice couple of topics.
</blockquote>
<p>
Topics included QA/Testing, web application deployment a look at PHP's document object model functionality and some presentations on <a href="http://www.projectzero.org/">Project Zero</a>, the new PHP lexer, <a href="http://ezcomponents.org/s/Workflow">eZ Components</a> and database abstraction.
</p>]]></description>
      <pubDate>Mon, 23 Jun 2008 10:24:14 -0500</pubDate>
    </item>
  </channel>
</rss>
