Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Web Development Options

by cgraf (Beadle)
on Aug 23, 2004 at 09:47 UTC ( [id://385034]=perlquestion: print w/replies, xml ) Need Help??

cgraf has asked for the wisdom of the Perl Monks concerning the following question:

I'm an immediate perl hacker, but I'm a newbie at web development.

There appears to be many options when it comes to developing a dynmaic web site in perl (using MySQL, sessions etc.).

I'm looking for a solution that is popular and easily hosted by hosting service provider. Here is a list of my considerations so far:

* Apache::ASP - has all the features that I need, but does not appear to be popular.

* CGI - is this now old-school?

* Template Toolkit - is this appropriate for small sites? Sessions would need to be hand-rolled / or use Apache::Sessions etc.

* Mason - same comments as Template Toolkit.

Any feedback on a recommended approach would be appreciated. I'm generally looking for a rapid solution to a small site, but would also willing to commit to soemthing that would valuable in the longer term for larger sites. Chris.

Replies are listed 'Best First'.
Re: Web Development Options
by tachyon (Chancellor) on Aug 23, 2004 at 11:07 UTC

    As you note there are a number of options, and much has been written on the pros and cons of them all. Have a look at the Tutorials section on CGIs, where you will find some very good intro articles. I suggest you could do a lot worse than using CGI::Application and HTML::Template. Here is a brief overview of using CGI::Application on perl.com.

    cheers

    tachyon

      I'm a professional web site developer, and I've been using and enjoying using CGI::Application with HTML::Template for years. I also co-own Summersault, which provides hosting, and not surprisingly already has current versions of these modules installed.

      I have also found that the CGI::Application mailing list has a high signal to noise ratio, and somewhat often wanders to discussions about "best practices" for web development in the paradigm.

      There are actually not many questions about how to use CGI::Application, I assume because it's fairly easy to use. disclaimer: I help maintain CGI::Application.

Re: Web Development Options
by Arunbear (Prior) on Aug 23, 2004 at 11:17 UTC
Re: Web Development Options
by bradcathey (Prior) on Aug 23, 2004 at 11:30 UTC

    cgraf, you will find several camps in the dynamic development arena, roughly divided up into ASP, JSP, PHP, ColdFusion, and of course, the reason we are all here, Perl and its various modules. I have chosen Perl.

    Personally, I rolled my own dynamic "engine" with the help of CGI, MySQL, HTML::Template, and WysiwygPro for a client-side editor.

    My experience here has piqued my interest in other helpful modules such as CGI::Lite, CGI::Application, CGI::Session, which I now realize would have made my task easier and a little less "old school."

    This is a big topic around the Monastery and a few Super Searchs should turn up lots (kiat has a lot of good posts on the subject—I might even have a few.)


    —Brad
    "Don't ever take a fence down until you know the reason it was put up." G. K. Chesterton
Re: Web Development Options
by htoug (Deacon) on Aug 23, 2004 at 11:46 UTC
    Apache::ASP - has all the features that I need, but does not appear to be popular.

    There is not much talk about it - true. Maybe thats because it "just works".

    It does for us at least - a medium sized application with about 200 "pages" and approx 5000 daily visitors.

    YMMV.

Re: Web Development Options
by bm (Hermit) on Aug 23, 2004 at 13:29 UTC
    You can find some good analysis of templating systems within the mod_perl documentation.

    --
    bm
Re: Web Development Options
by daveinthesky (Beadle) on Aug 23, 2004 at 17:32 UTC
    Well, I noticed no one mentioned Mason, one of my favs, so I thought I'd bring it up (though the poster already mentioned it). If you haven't looked at it, the mason book is a great place to start poking around.

    A lot of the common things you'll need, like sessions, can also be handled very easily through something like MasonX::Request::WithApacheSession


    It's a shame there isn't a Mason Cookbook. Maybe I should write it.
    David
Re: Web Development Options
by tomhukins (Curate) on Aug 23, 2004 at 15:40 UTC
Re: Web Development Options
by Etcetera (Novice) on Aug 24, 2004 at 02:54 UTC
    I basically rolled my own as well, using Template Toolkit and SpeedyCGI. Although it has some similarity to CGI::Application (which I actually only discovered very recently), it was tailored for my specific needs. I'm in the process of re-writing it as a well-behaved module in preparation for releasing it on CPAN, but the current code is available here.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://385034]
Approved by gjb
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-19 22:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found