greggles

Topics

programming

php drupal scheme scheming macros design patterns da la

design

design css

random thoughts

scribbles

alter ego

other me 'em that link us my space me linked in

Collections

Programmable web
PHP design patterns

guild

PHP Design Patterns

design patterns | php
php design patterns and idioms

Following my petty wingeing about the design patterns in php on the web I have to bite the bullet and do something about it. So here it comes a collection of design pattern examples, some from the GOF book, some collected from around the net, some (maybe) I have discovered. I have to admit, I had an eye opener, when I was rereading Peter Norvig's presentation on Design Patterns in Dynamic Laguages. I shamelessly lift a lot from there, should I quote everything?

The intent of these pages is to show the shapes of the patterns not a fully fledged implementation. In real life probably a combination of patterns will be employed. Everyone has their own favourites following their political, religious and style differences.

It is a work/study in progress, so expect changes and additions. Some of the patterns are transparent in php, but are given for comparison with other implementations.

This is not a pattern fundamentalist site, so no single interpretation is considered the one and only truth

update I've updated the list with a number of other design patterns. To the trolls, sorry purists, - yes, I'm aware that I smudge the boundaries between design patterns, idioms, techniques, ... That is intentional. The world is not black and white, not even grayscale.

another update I moved all of the pattern catalogue into the shorts section. I plan to add longs, I should imagine.

  • A catalogue of php design pattern shorts
  • Models, records, databases, friends and foes
A catalogue of php design pattern shorts ›
read more | 4 comments

Reply

Please solve the math problem above and type in the result. e.g. for 1+1, type 2
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <br /> <br> <div> <a> <em> <strong> <cite> <pre> <code> <ul> <ol> <li> <dl> <dt> <dd> <h3> <img> <blockquote> <q> <strike> <small> <h4> <h5> <h6>
  • Link to content with [[some text]], where "some text" is the title of existing content or the title of a new piece of content to create. You can also link text to a different title by using [[link to this title|show this text]]. Link to outside URLs with [[http://www.example.com|some text]], or even [[http://www.example.com]].
  • Lines and paragraphs break automatically.
More information about formatting options
Home » PHP Design Patterns

dikini.net

spreading confusion by accident since 1970