in reply to How to write effective modules

Hello,

I write web applications, often using either CGI::Application or Catalyst. What I've started doing recently is using CGI::Application as a framework for even my non web based apps.

So then when I start asking myself questions like "boy, how am I going to cleanly get a database handle to everything that needs it?" I just hit up CPAN and find stuff like CGI::Application::Plugin::DBH. It usually comes out cleaner than anything I could come up with on my own.

Regards,

Replies are listed 'Best First'.
Re^2: How to write effective modules
by graff (Chancellor) on May 04, 2009 at 05:07 UTC
    I recently started using CGI::Application, and it has really been a pleasure: very short learning curve, very clean concept of operation, and default behaviors that are cogent and really helpful to the application developer. The end result for me has been a great improvement over what I was doing before I started using this module, in terms of setting up, maintaining and adding to an app.