Posted by Oli Filth on 11/24/05 00:50
FluffyCat said the following on 23/11/2005 22:40:
> New on November 23, 2005 for www.FluffyCat.com PHP 5 Design Pattern
> Examples - the Facade Pattern.
>
> This is a pattern that most complex systems use. In the facade a
> class hides a comlex susbsystem from the calling class, and also hides
> the calling class from the subsystem.
>
> My sample makes extensive use of static functions in the subsystem.
> This seems to make sense if the calling class and subsystem can't be
> aware of each other.
>
> http://www.fluffycat.com/SDCMSv2/PHP-Design-Patterns-Facade/
>
That's not really a pattern as such, is it? It's merely an example of
encapsulation/functional abstraction. Which is one of the fundamental
underlying principles of OO design. To call this a pattern is like
saying that using a function is a pattern.
--
Oli
[Back to original message]
|