You are here: Re: Abstract Factory and Factory Method PHP5 Design Patterns « PHP Programming Language « IT news, forums, messages
Re: Abstract Factory and Factory Method PHP5 Design Patterns

Posted by FluffyCat on 11/05/09 11:31

Struggled to come up with at least one good example this week, almost
got something I liked for visitor and facade, but finally turned to
the decorator pattern. The decorator pattern is good to keep in mind
when you need to add functionality to a class, but changing that class
simply is not possible.

http://www.fluffycat.com/SDCMSv2/PHP-Design-Patterns-Decorator/


> On Thu, 03 Nov 2005 14:33:57 -0800, FluffyCat <LTruett@FluffyCat.com> wrote:
>
>...and as promised, an example of the composte pattern in PHP 5.
>
>http://www.fluffycat.com/SDCMSv2/PHP-Design-Patterns-Composite/
>
>Much easier than the memento pattern.
>
>I didn't do a true iterator for the Composite, partly because it
>really isn't required for the Composite and partly because I will be
>doing one for the Iterator pattern. I like to keep the pattern
>examples as pure as I can, and adding an iterator would hav muddied
>the waters somewhat.
>
>
>
>On Wed, 26 Oct 2005 19:39:41 -0700, FluffyCat <LTruett@FluffyCat.com>
>wrote:
>
>>In Febraury - April of 2002 I put together in Java examples of all 23
>>of the classic "Gang Of Four" design patterns for my website. Partly
>>I wanted to get a better understanding of those patterns. They are
>>still online at
>>http://www.fluffycat.com/java/patterns.html
>>
>>Since September 2003 I've mainly been using PHP, and now that PHP 5 is
>>becoming more available I am going to try the same thing I did in Java
>>with PHP.
>>
>>I have only completed my pages for Abstract Factory and Factory
>>Method thus far and I have a pretty good idea of what I will do for
>>Composite and Memento. Hopefully I will be adding one or two new
>>patterns each week until all are complete. If any other pattern
>>loving PHP enthusiasts want to check it out I'd love your feedback:
>>
>>http://www.fluffycat.com/SDCMSv2/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация