greetings brothers and sisters,
upon my path I have largely been using Perl for CGI work. This is not uncommon, and I learned long ago that CGI.pm is your best friend. There has always been something that has troubled me, though, and it recently came to light again when reading up on CGI::Application.
For me, these modules try to do too much.
Let me explain my blasphemy against CGI.pm before I'm branded a heretic. And I'll note that I do still use it, even if I'm a bit unhappy with it. For me, I am quite enamored with CGI.pm's ability to parse out all the input my script could ever want. But I have absolutely no use for it's HTML generation facilities.
I imagine it was around long before the tools I use now, but I much prefer using a templating system (namely Template Toolkit) for my document generation. How I've longed to cleave CGI.pm in two, leaving by the wayside the html generation and holding onto it's wonderful parsing abilities.
The problem also arose when I learned that CGI::Application is tied internally to HTML::Template. A worthy module to be sure, I have already mentioned that I prefer the Template Toolkit, as my applications output more than just web pages.
While it is possible to override this relationship I am wondering:
I think i personally would have been happiest if CGI::Application hadn't strayed from the goals of being a solid application framework module.
My questions to the perlmonks community is what do you consider when defining the scope/granularity of your own modules? What does the perl community at large have to say about such things? Have any of you had similar experiences with popular modules that for you seemed a bit bloated in the light of your own projects?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Modules that do Less
by davorg (Chancellor) on Jun 12, 2001 at 12:13 UTC | |
by AidanLee (Chaplain) on Jun 12, 2001 at 18:01 UTC | |
by tye (Sage) on Jun 12, 2001 at 20:24 UTC | |
|
Re: Modules that do Less
by stephen (Priest) on Jun 12, 2001 at 18:46 UTC | |
by dragonchild (Archbishop) on Jun 12, 2001 at 19:13 UTC | |
by stephen (Priest) on Jun 12, 2001 at 19:24 UTC | |
by AidanLee (Chaplain) on Jun 12, 2001 at 18:50 UTC | |
|
Re: Modules that do Less
by markjugg (Curate) on Jul 18, 2001 at 08:30 UTC | |
by AidanLee (Chaplain) on Jul 18, 2001 at 09:49 UTC | |
by markjugg (Curate) on Jul 18, 2001 at 18:13 UTC |