[Catalyst-dev] Catalyst plugin

Octavian Rasnita orasnita at gmail.com
Thu Oct 2 07:53:38 BST 2008


From: "Matt S Trout" <dbix-class at trout.me.uk>
> As I said in another email, what I'd say is that you should -subclass-
> C::V::Email or C::V::Email::Template, and if you can't do what you need via
> subclassing, sort out patches to the existing stuff so you can subclass it.
> 
> Then the stuff you want is in your own module, but all the stuff the already
> existing modules already do isn't duplicated.
> 
> Ain't OO awesome :)

Oh yes it is if you know to use it well enough. :-)

Maybe those 2 modules could be sub-classed and use the external module I've made, but I think that sub-classing will mean just a bigger effort without any benefit.

Why? Because I want to change:
- the interface used by the users ($c->stash->...)
- the structure of the configuration hash (that might allow defining more servers)
- the module that will create the message elements
- The way it will handle the templates (They will be also handled by the external program)

And this will mean changing everything.

Octavian




More information about the Catalyst-dev mailing list