http://www.fluffycat.com/PHP-Design-Patterns/
This looks like it explains quite a few design patterns.
I say looks because I hardly read it. I am going to sleep.
Hawt site that shows alot of design patterns.
Moderator: General Moderators
- daedalus__
- DevNet Resident
- Posts: 1925
- Joined: Thu Feb 09, 2006 4:52 pm
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Looks like a good reference but not so much a learning material. If you're not familiar with some of the common patterns this probably won't help much - the examples are fairly lengthy, adding fluff (presumably for clarification) but with no real textual explanation of what's going on. The decorator doesn't really explain why he's adding more than one decorator object which may confuse some people.... the pattern itself is just the act of creating an object which can modify the behaviour (often the output) of another object.
I'll have a read through all the patterns since there are a few mentioned that I've never seen
Didn't see the point of the prototype which was basically just cloning objects.
I'll have a read through all the patterns since there are a few mentioned that I've never seen
prototype is mentioned in my php patterns book:
He was sort of comparing it to Abstract Factory and Factory Method in the above quote.PHP Objects, Patterns, and Practice by Matt Zandstra wrote:...the Prototype pattern allows us to take advantage of the flexibility afforded by composition... because we are storing and cloning objects at runtime, we reproduce object state when we generate new products... This flexibility is also apparent when the object you wish to generate is composed of other objects.