I agree for the most part. I always factor out my template handling routines to somplace apart from my run modes. The only problem I can see is that this sort of thing seems like it would be different for every person/program.

That is true of course, especially when it comes to templating, where everyone has their favourite module and CPAN has about 20.



I like the idea, and even use it occasionally, but it just seems to me like it is something whose implementation (not yours, but anyone's) would be too 'personal'.

I can understand that. This is how I think about a lot of modules out there, too.


While I think having a lot of plugins is a good thing, I think the idea of having a common base class for you application modules should not be replaced but plugins.

Not so sure about the need for a common base class anymore.
Of course, at the moment I have one, but the code it contains is not application-specific at all, it just defines the way how I would like to have
parameters mapped, my templates loaded and these things.
Since that code is not application-specific, it could be part of CGI::App.
No application developer should need to write CGI parameter parsing code, or manually map URLs to template files.
That is of course, if everyone agreed on that particular style of doing these things, which is not the case, as everyone has their 'personal' implementation.


Before this plugin thing came up, there was no way for easily distributing these personal enhancements to other people.
You could only create a common base class, like someone did with CGI::Application::Plus, essentially forking the project and getting flamed for it.


Now, people can write plugins, maybe a few of these plugins can become widely accepted and make it into CGI::App core
( I am not thinking about my plugin here, but rather less controversial things like the dbh plugin or for example a subroutine naming scheme to automatically register run-modes ), thus advancing CGI::App in an organic, evolutionary fashion.



Thilo


--------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to