note 79462 added to language.oop5.patterns
| From: | nospamatflatoutmedia dot com at osu1 dot php dot net | Date: | Wed, 28 Nov 2007 15:49:15 +0000 |
| Subject: | note 79462 added to language.oop5.patterns | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-132636@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/79462
Del: integrated -- https://master.php.net/note/delete/79462/integrated
Del: useless -- https://master.php.net/note/delete/79462/useless
Del: bad code -- https://master.php.net/note/delete/79462/bad+code
Del: spam -- https://master.php.net/note/delete/79462/spam
Del: non-english -- https://master.php.net/note/delete/79462/non-english
Del: in docs -- https://master.php.net/note/delete/79462/in+docs
Del: other reasons-- https://master.php.net/note/delete/79462
Reject -- https://master.php.net/note/reject/79462
Search -- https://master.php.net/manage/user-notes.php