Hawt site that shows alot of design patterns.

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Hawt site that shows alot of design patterns.

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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.
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

I just got that book spacegoat. It's a good un!
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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.
Post Reply