On Jan 30, 2008 10:35 AM, Eric Butera <eric.butera@xxxxxxxxx> wrote: > The only gripe I have about the registry pattern is the lack of code > completion in PDT. ;) heh. does that still blowup when you try to open a file w/ an interface definition? > I love php patterns, but it seems to sort of be dead for years now. me too; ya, it is sort of dead, sad, but its still worth a look to people getting there feet wet w/ patterns, and occasionally as a point of reference for patterns implemented in php. > I just keep downloading copies of various frameworks and poke through > their implementations. this is a great idea, and youve got me doing more of it. > At the end of the day though it is my job to > write code, so I'm going to always balance the code purity vs getting > it done. I am okay with a registry that uses static methods because > it works in my projects. its sorta like the 'php way' for the registry. theres something we can say the java guys cant do ;) Some people would insist on being able to > create an instance and pass that around, but I don't need that level > of complexity. i dont think Registry::getInstance() is really that much overhead; but it is another line of code to write :) -nathan