note 79461 added to language.oop5.patterns
| From: | nospam at flatoutmedia dot com | Date: | Wed, 28 Nov 2007 15:48:58 +0000 |
| Subject: | note 79461 added to language.oop5.patterns | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-132635@lists.php.net to get a copy of this message | ||
Also in response to the note by anonymous at world4ch dot org:
As me at chrisstockton dot org mentioned, a Singleton is not at all a global variable, but an OOP
way to encapsulate functionality that only needs to exist once. (Mouse and Keyboard controllers,
for example, are ideal candidates for Singleton-style classes.)
The comments made by anonymous at world4ch dot org come from a procedural style of programming (see
the book referenced in that message at http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-4.html).
Design patterns are very, very OOP-specific; anyone with a tendency toward procedural programming
should ignore design patterns altogether. (And it's probably best for those of us that tend
toward one style of programming to avoid trying to talk intelligently about another.)
----
Server IP: 209.41.74.194
Probable Submitter: 68.3.206.152
----
Manual Page -- http://www.php.net/manual/en/language.oop5.patterns.php
Edit -- https://master.php.net/note/edit/79461
Del: integrated -- https://master.php.net/note/delete/79461/integrated
Del: useless -- https://master.php.net/note/delete/79461/useless
Del: bad code -- https://master.php.net/note/delete/79461/bad+code
Del: spam -- https://master.php.net/note/delete/79461/spam
Del: non-english -- https://master.php.net/note/delete/79461/non-english
Del: in docs -- https://master.php.net/note/delete/79461/in+docs
Del: other reasons-- https://master.php.net/note/delete/79461
Reject -- https://master.php.net/note/reject/79461
Search -- https://master.php.net/manage/user-notes.php