Re: the Visitor Design Pattern
- From: "Chung Leong" <chernyshevsky@xxxxxxxxxxx>
- Date: 28 Nov 2005 22:18:42 -0800
FluffyCat wrote:
> New on November 28, 2005 for www.FluffyCat.com PHP 5 Design Pattern
> Examples - the Visitor Pattern.
>
> In the Visitor pattern, one class calls a function in another class
> and passes an instance of itself. The called class has special
> functions for each class that can call it.
>
> With the visitor pattern, the calling class can have new operations
> added without being changed itself.
>
> http://www.fluffycat.com/SDCMSv2/PHP-Design-Patterns-Visitor/
A class that passes an instance of itself to another class means you
don't freaking know what you're doing. What's next? The spaghetti
design pattern?
.
- Follow-Ups:
- Re: the Visitor Design Pattern
- From: Oli Filth
- Re: the Visitor Design Pattern
- References:
- the Visitor Design Pattern
- From: FluffyCat
- the Visitor Design Pattern
- Prev by Date: logonhours of AD
- Next by Date: Re: what 's wrong of the syntax
- Previous by thread: the Visitor Design Pattern
- Next by thread: Re: the Visitor Design Pattern
- Index(es):
Relevant Pages
|