note 78050 added to language.oop5.patterns
| From: | me at chrisstockton dot org | Date: | Tue, 25 Sep 2007 20:23:30 +0000 |
| Subject: | note 78050 added to language.oop5.patterns | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-130785@lists.php.net to get a copy of this message | ||
For anyone who reads: anonymous at world4ch dot org
Please do not confuse the singleton for a global variable, they are nothing the same. The global
keyword is a way to extract a variable from the global scope into your local scope. A singleton is a
way to control class instantiation, independent of scope to a single instance.
In addition note the importance in design patterns, the ability to interchange interfaces and
abstraction to allow easy adaption to a variety of needs and specifications through a single means
of access is invaluable to many large scale enterprise applications. Specially pay-for software that
has many system architectures to accommodate. However, the comment makes a good point to implement
as necessary, the many principles don't apply to every problem domain. Do not conform your
problem to a pattern, implement a pattern to your problem.
----
Server IP: 64.71.164.2
Probable Submitter: 208.187.153.225
----
Manual Page -- http://www.php.net/manual/en/language.oop5.patterns.php
Edit -- https://master.php.net/note/edit/78050
Del: integrated -- https://master.php.net/note/delete/78050/integrated
Del: useless -- https://master.php.net/note/delete/78050/useless
Del: bad code -- https://master.php.net/note/delete/78050/bad+code
Del: spam -- https://master.php.net/note/delete/78050/spam
Del: non-english -- https://master.php.net/note/delete/78050/non-english
Del: in docs -- https://master.php.net/note/delete/78050/in+docs
Del: other reasons-- https://master.php.net/note/delete/78050
Reject -- https://master.php.net/note/reject/78050
Search -- https://master.php.net/manage/user-notes.php