Re: Delegation vs Hooks (was: Annouce: DBIx::Class, a.k.a "taking the easy way out")

[prev] [thread] [next] [Date index for 2005/07/27]

From: Matt S Trout
Subject: Re: Delegation vs Hooks (was: Annouce: DBIx::Class, a.k.a "taking the easy way out")
Date: 00:07 on 27 Jul 2005
On Tue, Jul 26, 2005 at 04:27:29PM -0700, Ask Bjørn Hansen wrote:
> What's the difference between hooks and delegation?
> 
> Is it just the direction the relationship starts in (hooks = plugin  
> says "Application, I want to handle foo", delegation = application  
> says "plugin, you handle foo")?

IMO that's pretty much it  - or equally, hooks generally mean an interface
to register a sub and delegation generally means an interface to register
a class/object.

        -- 
             Matt S Trout           Website: http://www.shadowcatsystems.co.uk
  Technical Director        E-mail:  mst (at) shadowcatsystems.co.uk
Shadowcat Systems Ltd.

(message missing)

Delegation vs Hooks (was: Annouce: DBIx::Class, a.k.a "taking the easy way out")
=?ISO-8859-1?Q?Ask_Bj=F8rn_Hansen?= 23:27 on 26 Jul 2005

Re: Delegation vs Hooks (was: Annouce: DBIx::Class, a.k.a "taking the easy way out")
Matt S Trout 00:07 on 27 Jul 2005

Generated at 16:36 on 28 Jul 2005 by mariachi v0.52