note 83167 added to language.oop5.patterns

From: Date: Tue, 13 May 2008 19:00:27 +0000
Subject: note 83167 added to language.oop5.patterns
Groups: php.notes 
Request: Send a blank email to php-notes+get-139340@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 12.96.31.98 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.patterns.php Edit -- https://master.php.net/note/edit/83167 Del: integrated -- https://master.php.net/note/delete/83167/integrated Del: useless -- https://master.php.net/note/delete/83167/useless Del: bad code -- https://master.php.net/note/delete/83167/bad+code Del: spam -- https://master.php.net/note/delete/83167/spam Del: non-english -- https://master.php.net/note/delete/83167/non-english Del: in docs -- https://master.php.net/note/delete/83167/in+docs Del: other reasons-- https://master.php.net/note/delete/83167 Reject -- https://master.php.net/note/reject/83167 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#139340) next »