News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

IBM developerWorks:
Five more PHP design patterns
0 comments :: posted Friday March 28, 2008 @ 08:49:35
voice your opinion now!

The IBM developerWorks site has a new article posted that talks about design patterns, five of them in particular, that can help to "accelerate your PHP development" and make your code more maintainable down the line.

As an application developer, you can have a lifelong career without ever knowing what any of the patterns are called or how or when they're used. However, I've found that a good working knowledge of these patterns, as well as those introduced in the developerWorks article "Five common PHP design patterns" (see Resources), allows you to do two things: Enable high-bandwidth conversations and reduce painful lessons.

The patterns they talk about in this "five more" article of the series are:

  • Adapter Pattern
  • Iterator Pattern
  • Decorator Pattern
  • Delegate Pattern
  • State Pattern

Diagrams are provided for each of them, showing how they flow along with brief code examples (structures really) to show how that transitions over to actual use.

tagged with: design patterns tutorial adapter iterator decorator delegate state


DevShed:
The Basics of Implementing Adapter Objects with PHP
0 comments :: posted Wednesday December 06, 2006 @ 15:53:59
voice your opinion now!

DevShed takes a look at another of the design patterns in a new series starting with this new tutorial - a look at the implementation of Adapter objects in PHP.

You may have already encountered situations in coding PHP applications in which you would like to use inheritance, but could not for one reason or another. Fortunately, there is an alternative for these situations that can help you achieve the same result. In this first article in a two-part series, you'll learn about the adapter pattern.

They start off with the basics of the Adapter pattern and move quickly into the first definition of a class using them - a directory processor. Once that's built, they show how it all works with a more practical example.

tagged with: adapter design pattern object tutorial part1 basics directory processor adapter design pattern object tutorial part1 basics directory processor


code pecl PHP5 application PEAR mysql zendframework zend package database developer job book framework releases release cakephp ajax conference security

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework