Page 1 of 1

Hawt site that shows alot of design patterns.

Posted: Sun Aug 20, 2006 3:15 am
by daedalus__
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.

Posted: Sun Aug 20, 2006 7:21 am
by Chris Corbyn
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.

Posted: Sun Aug 20, 2006 11:43 am
by Luke
prototype is mentioned in my php patterns book:
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.
He was sort of comparing it to Abstract Factory and Factory Method in the above quote.

Posted: Sun Aug 20, 2006 8:46 pm
by neophyte
I just got that book spacegoat. It's a good un!

Posted: Sun Aug 20, 2006 8:55 pm
by Luke
I really learned quite a lot from it. The first book I bought ("Sams Teach Yourself PHP in 24 Hours") was by the same author, and I quite liked it, so I was happy to see that he had written a book about PHP Patterns & Practice.