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

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

From: =?ISO-8859-1?Q?Ask_Bj=F8rn_Hansen?=
Subject: Delegation vs Hooks (was: Annouce: DBIx::Class, a.k.a "taking the easy way out")
Date: 23:27 on 26 Jul 2005
I'm doing a talk next week at OSCON about writing extensible perl  
programs, so this discussion is very interesting.

My talk is (was) mostly going to be about making it easy to extend  
applications rather than frameworks, to the extent there is a  
difference.

One thing I've been confused about:

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")?


  - ask

        -- 
        http://askask.com/  - http://develooper.com/

(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

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