<?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:13:28 -0500</pubDate>
    <ttl>30</ttl>
    <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[DevShed: Utilizing Private Methods with PHP 5 and Member Visibility ]]></title>
      <guid>http://www.phpdeveloper.org/news/10437</guid>
      <link>http://www.phpdeveloper.org/news/10437</link>
      <description><![CDATA[<p>
DevShed has posted the <a href="http://www.devshed.com/c/a/PHP/Utilizing-Private-Methods-with-PHP-5-and-Member-Visibility/">fifth part</a> of their series looking at the visibility keywords on PHP5's object oriented support today. They've already looked at <a href="http://www.phpdeveloper.org/news/10292">private</a>, <a href="http://www.phpdeveloper.org/news/10394">public</a> and <a href="http://www.phpdeveloper.org/news/10292">protected</a> properties in a class, now they look at the use of making methods private to restrict their use/extension.
</p>
<blockquote>
Of course, when it comes to specifying how visible a certain class property or method will be, you know that PHP 5 permits you to work with three distinct levels of access, called "public," "protected," and "private" respectively. [...] As you may have noticed, however, I've not taught you how to define private methods yet, which is something that can definitely be very useful if you want to restrict the access to your classes from the outside more severely.
</blockquote>
<p>
The <a href="http://www.devshed.com/c/a/PHP/Utilizing-Private-Methods-with-PHP-5-and-Member-Visibility/">tutorial</a> shows the creation of a class with private properties and then expands it to include a private method. Then they call it from an object, an example of the error PHP kicks back is there too. He also includes the concept of a "getter" to call the private function from a public one.
</p>]]></description>
      <pubDate>Thu, 19 Jun 2008 07:58:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Alex Netkachov's Blog: Are setters evil?]]></title>
      <guid>http://www.phpdeveloper.org/news/10425</guid>
      <link>http://www.phpdeveloper.org/news/10425</link>
      <description><![CDATA[<p>
<i>Alex Netkachov</i> has posted his <a href="http://www.alexatnet.com/node/151">own response</a> to <a href="http://www.phpdeveloper.org/news/10420">this opinion</a> on the Typical Programmer on getters and setters in object-oriented applications.
</p>
<blockquote>
"Do not use getters and setters" looks like a hastily advise, but its meaning is very important and it is "do not break encapsulation", which moves us to the question what the encapsulation is.
</blockquote>
<p>
He notes that encapsulation is, in essence, hiding parts of the code away so that the user/other coders only see a little bit of the magic that happens. He argues that getters and setters are a valid part of the encapsulation process and that designing a good, easy to use system almost requires them.
</p>]]></description>
      <pubDate>Tue, 17 Jun 2008 09:36:03 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Typical Programmer Blog: Doing it wrong: getters and setters]]></title>
      <guid>http://www.phpdeveloper.org/news/10420</guid>
      <link>http://www.phpdeveloper.org/news/10420</link>
      <description><![CDATA[<p>
According to <a href="http://typicalprogrammer.com/?p=23">this new post</a> on the Typical Programmer blog, using getters and setters in your scripts only adds in a bit of unnecessary coupling and complexity to your scripts that you just don't need.
</p>
<blockquote>
Today most of the popular programming languages support objects, limiting scope, modularity, passing by value, and sophisticated built-in types. There should be no reason to deliberately expose an object's data to the rest of the code because the language can enforce encapsulation and data hiding.
</blockquote>
<p>
While not specific to PHP, <a href="http://typicalprogrammer.com/?p=23">the post</a> does recommend against them because of one simple reason common to all languages that make them possible - they "break the encapsulation OOP offers". For them, they're like a cheat to get around bad coding practices and are not needed to make a successful application work.
</p>]]></description>
      <pubDate>Mon, 16 Jun 2008 11:19:17 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Kae Verens' Blog: review: Object-Oriented Programming in PHP5]]></title>
      <guid>http://www.phpdeveloper.org/news/10291</guid>
      <link>http://www.phpdeveloper.org/news/10291</link>
      <description><![CDATA[<p>
<i>Kae Verens</i> has <a href="http://verens.com/archives/2008/05/28/review-object-oriented-programming-in-php5/">posted a review</a> of a PHP-related book from APress Publishing, "Object-Oriented Programming in PHP5":
</p>
<blockquote>
In short: a very good concise introduction to OOP. I'll be keeping this on my desk for a while. The language use is strange but the code examples and the spread of topics make up for that in spades. This book has a very broad scope, but is clear in the essentials. If you're looking for an introduction to Objected Oriented Programming in PHP, I'd recommend this one.
</blockquote>
<p>
<a href="http://verens.com/archives/2008/05/28/review-object-oriented-programming-in-php5/">The review</a> gets into a bit more detail on "The Good", "The Bad" and "The Ugly" of its contents including its intro to OOP in PHP (good), the assumption that OOP is better than other programming types (bad) and the poor structure of the book (the ugly).
</p>]]></description>
      <pubDate>Thu, 29 May 2008 07:53:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Mobile Platforms Built On Object-Oriented PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/10282</guid>
      <link>http://www.phpdeveloper.org/news/10282</link>
      <description><![CDATA[<p>
A <a href="http://devzone.zend.com/article/3567-Mobile-Platforms-Built-On-Object-Oriented-PHP-5">new post</a> on the Zend Developer Zone points out a talk that's going to be given at the <a href="http://upcoming.yahoo.com/event/708886/?ps=6">National Arts Club</a> about making mobile platforms with the help of PHP5.
</p>
<blockquote>
Kargo derives significant competitive advantage as their application designers & producers make use of Zend Framework to build their next generation mobile application platform on. [...] Zend Technologies will present an introduction to the modular "use at will" PHP 5 components in Zend Framework and Kargo will outline the high-performance messaging server and mobile internet platform they've built.
</blockquote>
<p>
You can find out more about the meetup from <a href="http://upcoming.yahoo.com/event/708886/?ps=6">its page</a> on Upcoming and check out <a href="http://www.timeout.com/newyork/venues/gramercy-flatiron/856/national-arts-club">this page</a> for more details and a map to the location (New York, NY).
</p>]]></description>
      <pubDate>Wed, 28 May 2008 07:53:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: A review of "Object-Oriented Programming with PHP5"]]></title>
      <guid>http://www.phpdeveloper.org/news/10118</guid>
      <link>http://www.phpdeveloper.org/news/10118</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has <a href="http://akrabat.com/2008/05/04/a-review-of-object-oriented-programming-with-php5/">posted his review</a> of another PHP-related book from Packt Publishing, "Object-oriented Programming with PHP5":
</p>
<blockquote>
<a href="http://www.packtpub.com/">Packt Publishing</a> recently sent me a couple of books to review, so let's start with <a href="http://www.packtpub.com/oop-php-5/book">Object-Oriented Programming with PHP5</a> by Hasin Hayder. According to the introduction, the book is intended for beginners to intermediate PHP5 programmers and the first chapter has a good introduction to what object oriented programming is and why you would want to use it.
</blockquote>
<p>
He glosses over the first few chapters of the book (introductory stuff mostly) and points out three others specifically - Chapter 5 covering reflection and unit testing, Chapter 6 covering the SPL and Chapter 9 dealing with SimpleXML and DOM.
</p>]]></description>
      <pubDate>Tue, 06 May 2008 09:36:02 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ken Guest's Blog: Book Review: Object-Oriented Programming with PHP5]]></title>
      <guid>http://www.phpdeveloper.org/news/10095</guid>
      <link>http://www.phpdeveloper.org/news/10095</link>
      <description><![CDATA[<p>
<i>Ken Guest</i> has <a href="http://blogs.linux.ie/kenguest/2008/05/01/book-review-object-oriented-programming-with-php5/">reviewed</a> one of the PHP offerings from Packt Publishing and written by <i>Hasin Hayder</i> - <a href="http://www.packtpub.com/oop-php-5/book">Object-oriented Programming with PHP5</a>.
</p>
<blockquote>
Putting the aspects of Hayder's grasp of the English language aside, the book is rather good as an introduction to the various technologies that it covers.
</blockquote>
<p>
He points out a few things of note - the beginner OOP chapters (only made for the newbies out there), the contents of the main OOP chapter and the good section on PHPUnit and unit testing. He also has a few suggestions of things that could make the book a bit better, including a personal suggestion on code formating and braces.
</p>]]></description>
      <pubDate>Fri, 02 May 2008 08:47:33 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Benchmarking Applications with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10026</guid>
      <link>http://www.phpdeveloper.org/news/10026</link>
      <description><![CDATA[<p>
DevShed has posted <a href="http://www.devshed.com/c/a/PHP/Benchmarking-Applications-with-PHP/">the first part</a> of a new series looking at benchmarking performance in your PHP applications.
</p>
<blockquote>
If you're anything like me, you have had your head spinning with questions [...] these and other dilemmas (add your own to the list) sometimes make peace of mind a nearly impossible goal.
</blockquote>
<p>
<a href="http://www.devshed.com/c/a/PHP/Benchmarking-Applications-with-PHP/">The tutorial</a> talks about a few simple methods for running benchmark data including the use of microtime(), an OOP method and wrapping the call inside a method of their class.
</p>]]></description>
      <pubDate>Wed, 23 Apr 2008 21:02:17 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: PHP Form Validation System: An Object-Oriented Approach]]></title>
      <guid>http://www.phpdeveloper.org/news/10005</guid>
      <link>http://www.phpdeveloper.org/news/10005</link>
      <description><![CDATA[<p>
<i>Mike Weiner</i> has put together <a href="http://www.phpbuilder.com/columns/weiner20050831.php3">an article</a> for PHPBuilder.com that's posted today showing a bit more object-oriented solution to validating the user submitted data in your forms:
</p>
<blockquote>
Whether it is for database submission, emailing, or for some other purpose, forms represent the primary means of enabling a user to send data to an application. As a result, it is important to have control over the data collected by your forms, which will aid in the creation of streamlined, error-free applications.
</blockquote>
<p>
He lays out the validation method in a graphic going with a generic validation class that then calls the various validation methods (like phone or email) as needed. The "validation set" manages which validations are to be run on which form elements. Example code for each of the bits making up the structure and the implementation are provided.
</p>]]></description>
      <pubDate>Mon, 21 Apr 2008 08:49:24 -0500</pubDate>
    </item>
  </channel>
</rss>
