[Catalyst] Extending Catalyst -- new elements

Tomas Doran bobtfish at bobtfish.net
Fri Jun 18 09:15:04 GMT 2010

On 17 Jun 2010, at 20:22, Sir Robert Burbridge wrote:
> My questions are:
> * Would this kind of functionality be better done in  
> Catalyst::Helper::(Model|View|Contoller):: or somewhere else?

No, you want to put it in about the right place.

Currently the skeleton code generation only generates app templates  
and basic Model/View/Controller classes, as nobody has made the code  
generation flexible enough to generate other things.

Patches to do so would be welcome, however it generally really is just  
a couple of lines of code, so the effort to work on it hasn't  
scratched anyone's itch really.

Your talk of 'help enforce the practice of' makes me think that you're  
trying to solve a political / development organisation problem with  
code - which is rarely the right solution. I personally think you'd be  
better writing documentation / providing training to your team about  
why to do things a certain way, and/or instituting a code quality  
assurance process (such as code review).

Both of these approaches are more likely to succeed in stopping people  
from generating shitty code than mandating a recipe with which you  
build applications by rote.


More information about the Catalyst mailing list