Re: beginning and testing

Paul Johnson <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Tue, Oct 07, 2014 at 08:23:58AM -0500, Patton, Billy wrote:
> I’m just not sure where to start.
> Any recommendations would help.

I'm going to give you some different, and perhaps somewhat heretical
advice.

You want to keep things simple.  That's great.  Your current application
doesn't use mod_perl.  So perhaps to keep things simple you don't need
to now.  mod_perl is a heavyweight solution.  I would suggest looking at
a lightweight framework instead, perhaps Dancer or Mojolicious.

Then I would keep the parts that deal with the web as thin as possible.
Put anything not dealing specifically with the web into separate
modules.  Those modules can be tested extensively in the usual fashion,
and the web layer should be so thin that it's hard to have bugs in it.
However, both Dancer and Mojolicious have testing modules for those
parts too.

-- 
Paul Johnson - [email protected]
http://www.pjcj.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.