note 79461 deleted from language.oop5.patterns by james

From: Date: Wed, 28 Nov 2007 20:43:44 +0000
Subject: note 79461 deleted from language.oop5.patterns by james
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-132641@lists.php.net to get a copy of this message
Note Submitter: nospam at flatoutmedia dot com ---- 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.)

« previous php.notes (#132641) next »