Posted by Andy Hassall on 10/29/98 11:33
On Thu, 01 Dec 2005 14:43:20 GMT, Oli Filth <catch@olifilth.co.uk> wrote:
>FluffyCat said the following on 01/12/2005 04:48:
>> Ladies and gentlemen, I present to you my rendition of the The Chain
>> of Responsibility Pattern in PHP 5.
>>
>> http://www.fluffycat.com/SDCMSv2/PHP-Design-Patterns-Chain-of-Responsibility/
>
>Two recommendations on this one:
>
>1. Alter the description; it's not "moving up a class hierarchy", as
>there is no hierarchy (hierarchy implies inheritance tree, which you
>don't have).
Might it be worth quoting the original descriptions from the canonical Design
Patterns book? e.g. for Chain of Responsibility it's:
"Avoid coupling the sender of a request to its receiver by giving more than
one object a chance to handle the request. Chain the receiving objects and pass
the request along the chain until an object handles it."
... which is clearer.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
[Back to original message]
|