design patterns

Proxies in PHP - Matthew Weier O'Phinney

Planet PHP  Tue, 07/05/2011 - 12:05

A number of programming design patterns look very similar. One of these is the Proxy pattern, which, at first glance, can look like a number of others: Decorator, Flyweight, even plain old object extension.

However, it has its own niche, and it can provide some incredible flexibility for a number of programming scenarios.

Continue reading "Proxies in PHP"


 

Design Patterns of Drupal - Larry Garfield

Planet PHP  Wed, 06/29/2011 - 21:22

My article from the inaugural issue of Drupal Watchdog is now online. Design Patterns of Drupal is based on my original session from DrupalCon Paris.

Although Drupal-centric, it serves as a great introduction to the concept of design patterns in general.


 

Zend Developer Zone: Design Patterns I Hate

PHPDeveloper.org  Wed, 05/18/2011 - 09:18

On the Zend Developer Zone today there's a new post from Keith Casey about some of the design patterns he hates - ones that are misused too often and have become more of a "worst practice" at times than others.


 

PHPBuilder.com: Using the Factory Pattern in PHP Applications

PHPDeveloper.org  Fri, 02/25/2011 - 10:07

On PHPBuilder.com today, there's a new tutorial posted about using one of the more well-known design patterns in your PHP applications - the Factory Pattern.

Design patterns are repeatable methods for doing common tasks in a "best practices" sort of way.


 

Label Media Blog: Design Patterns in PHP - Observer Pattern

PHPDeveloper.org  Fri, 02/11/2011 - 11:03

Tom Rawcliffe has posted the latest in his design patterns series covering some of the most common patterns and how they would work in PHP.

In this new post he looks at the observer pattern.


 

Zend Developer Zone: ZendCon 2010 Podcast - A New Approach to Ob...

PHPDeveloper.org  Tue, 01/11/2011 - 13:05

On the Zend Developer Zone there's a new post sharing the latest episode of their ZendCon 2010 sessions series - a talk from Stefan Priebsch about object persistence in PHP.


 

Kevin Schroeder's Blog: ZendCon 2010 Podcast - Dependency Inject...

PHPDeveloper.org  Thu, 01/06/2011 - 08:12

Kevin Schroeder has posted a podcast from last year's Zend/PHP Conference (2010) - Fabien Potencier's session covering dependency injection.


 

Ghosts of Unix Past: a historical search for design patterns

Lambda the Ultimate - Programming Languages Weblog  Sat, 12/04/2010 - 22:12

Not strictly PLT-related, but Neil Brown has contributed an amazing series of articles to Linux Weekly News:


 

Label Media Blog: Design Patterns in PHP - Strategy Pattern

PHPDeveloper.org  Tue, 11/30/2010 - 12:48

On the Label Media blog today Tom Rawcliffe continues his series looking at design patterns (see here for his look at the Factory pattern) with this new post focusing in on the Strategy pattern.


 

Implementing the Singleton Pattern in PHP 5

Linux Today  Thu, 11/25/2010 - 13:03

PHPBuilder: "As you probably know, in software engineering there is a set of design patterns that are universally tested, approved and accepted as advanced recipes for programming.

One of these patterns is the Singleton design pattern, which is based on the mathematical concept of a singleton (a set with a single element)"