Re: Re: When to use design patterns?
| From: | Nathan Nobbe | Date: | Mon, 25 Feb 2008 16:07:02 +0000 |
| Subject: | Re: Re: When to use design patterns? | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-270049@lists.php.net to get a copy of this message | ||
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