As a refugee from the web programming wars I fell rather confused as I read through various comments here and info on the Web about contructing large Web based apps in Perl.
I have been doing this for a while, and have a couple of pretty large (20K+ lines of Perl in about 40 scripts) apps running quite happily. But they are maintenance nightmares. They feature
- relatively little use of CGI,pm - usually only for parsing form values = we started out using cgi-lib.pl when we stopped using out hand-rolled parser.
- All the HTML is in <<here statements, this stuff was started in 1994. We did use a template parser of our own for a while, but it was too clunky so we gave it away.
- Session management is done by using a variable passed in the URL.
- About five years ago we updated from flat-file dtabases to MySQL with DBI&DBD
My more current work uses:
- CGI.pm extensively
- Template::Html for all display.
- CGI::Session for sessions management.
- Abstract::SQL for building complex SQL on the fly
- and of course the inevitable DBI&DBD combinations.
My question is this. I am about to embark on a total re-write of one of the 20K+ nightmares and a totally new app that is strting to feel like it will be five to six times the size.
I would like to make some intelligent choices about new ways to do all of this! I see lots of Application Frameworks getting around, but I would like some informed opinion about these.
- What are monks using as frameworks for large web-apps?
- What are your favourite CPAN modules other than the usual suspects such as those I have mentioned? Why?
- Do you have any pointers to suitable books (other than O'Reilly I have everything they have published related to Perl and the Web.
Please be as eloquent and verbose as you desire! I love reading long and etailed posts as much as I love the short pithy ones.
jdtoronto
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.