Re: Re: When to use design patterns?
| From: | Eric Butera | Date: | Mon, 25 Feb 2008 17:06:56 +0000 |
| Subject: | Re: Re: When to use design patterns? | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-270073@lists.php.net to get a copy of this message | ||
On Mon, Feb 25, 2008 at 11:07 AM, Nathan Nobbe <quickshiftin@gmail.com> wrote:
> On Mon, Feb 25, 2008 at 10:38 AM, Robert Cummings <robert@interjinn.com>
> wrote:
>
> > My favourite patterns are the following:
> >
> > factory
> > singleton
> > adaptor
>
> i dont know about any favorites at this time but as far as common,
> id say
>
> strategy
> adapter
> template method (often used in conjunction w/ factory)
>
> singleton too (watch out for eric; hes a registry guy ;)) (and this is the
> top
> 3 from my exp list so had to stuff singleton by the wayside :))
>
> the heads first book is key ;)
> and also, you might check out phppatterns.com; though it hasnt been
> updated in a while id consider it somewhat of a classic source on patterns
> w/ php as the example language.
>
> -nathan
>
>
I'm not going to even say anything. :)
Since we're declaring our love for specifics, I really like the
observer pattern lately for adding a way to add features without
touching the core.