note 96545 deleted from language.oop5.patterns by danbrown
| From: | danbrown@php.net | Date: | Thu, 04 Mar 2010 15:17:33 +0000 |
| Subject: | note 96545 deleted from language.oop5.patterns by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-166655@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
The example from quentinberlemont at gmail dot com show how useless Singletons are in practice.
You write a bulk of code that isn't necessary and you get the same as when you were using a
global variable.
Just ask yourself when and why can only exist one instance of an object?