note 96545 added to language.oop5.patterns
| From: | Anonymous at osu1 dot php dot net | Date: | Thu, 04 Mar 2010 13:11:28 +0000 |
| Subject: | note 96545 added to language.oop5.patterns | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-166648@lists.php.net to get a copy of this message | ||
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?
----
Server IP: 69.147.83.197
Probable Submitter: 92.202.4.114
----
Manual Page -- http://www.php.net/manual/en/language.oop5.patterns.php
Edit -- https://master.php.net/note/edit/96545
Del: integrated -- https://master.php.net/note/delete/96545/integrated
Del: useless -- https://master.php.net/note/delete/96545/useless
Del: bad code -- https://master.php.net/note/delete/96545/bad+code
Del: spam -- https://master.php.net/note/delete/96545/spam
Del: non-english -- https://master.php.net/note/delete/96545/non-english
Del: in docs -- https://master.php.net/note/delete/96545/in+docs
Del: other reasons-- https://master.php.net/note/delete/96545
Reject -- https://master.php.net/note/reject/96545
Search -- https://master.php.net/manage/user-notes.php