note 83167 deleted from language.oop5.patterns by danbrown

From: Date: Sun, 23 Jan 2011 16:41:17 +0000
Subject: note 83167 deleted from language.oop5.patterns by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-176104@lists.php.net to get a copy of this message
Note Submitter: shane dot harter at midwayproducts dot com ---- Re: Chris Question re: // Mangle the arguments into an array Why not just use func_get_args() ? Am I missing something? I mean, (no offense) but generally speaking I'm not a fan of what you put together. I can see the benefit of abstracting the plumbing needed for a singleton in a common base class. So I understand your thinking. But I disagree with it. IMO creating a class hierarchy is about properly modeling a system (in the case of an event model) or an entity (in the case of a data model). So instead of using inheritance to better solve a problem domain, I'm using it to handle an implementation detail. IMO, creating an ISingleton interface to enforce continuity, and a code template of an empty class w/ all the required singleton programming would be much better.

« previous php.notes (#176104) next »