Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Perl + HTML5 + mod_perl?

by mkhan (Sexton)
on May 20, 2011 at 10:09 UTC ( [id://905896]=perlquestion: print w/replies, xml ) Need Help??

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

Hi Guys, I'm relatively new to Web development using Perl. I am working on a project which involves:


1. Building a web application that takes some information from the user.

2. Creates a cloud (EC2) instance of user's choice.

3. Sends this information to the cloud virtual machine.

4. Has certain interactions.

My Questions:

Can I use HTML5 to build my pages and still be able to use Perl + mod_perl effectively?
What else would I need to consider? If you can link me to relevant information I'd be really grateful.
Cheers.

Replies are listed 'Best First'.
Re: Perl + HTML5 + mod_perl?
by moritz (Cardinal) on May 20, 2011 at 11:24 UTC
    Can I use HTML5 to build my pages and still be able to use Perl + mod_perl effectively?

    mod_perl and pretty much any other component you can think of (PSGI, which you should really consider, web frameworks like Mojolicious, Catalyst and Dancer, etc.) are all agnostic to output format. You can use them to deliver JSON, PNG, PDF, HTML, plain text, HTML 5 or any other format you want.

    What else would I need to consider?

    If the actions on the server side take more than about 5 seconds, you need to think about how to execute them in the background, and provide feedback to the user when the action finishes. This article should give you the basic understanding on how to do such things, though there might be more modern tools available for doing it.

Re: Perl + HTML5 + mod_perl?
by John M. Dlugosz (Monsignor) on May 20, 2011 at 10:56 UTC
    For new work, you should look into using FastCGI instead of mod_perl; or better yet code to an abstract API like PSIG, as reciently mentioned in this thread.

    I don't think the generation of (draft) HTML5 as opposed to HTML4 or XHTML makes any difference to the dispatching mechanism. It will matter only in the content of the templates you use.

Re: Perl + HTML5 + mod_perl?
by ww (Archbishop) on May 20, 2011 at 11:41 UTC
    "Can I use HTML5 to build my pages ...."

    IMO (YMMV), the question should be "Should I use HTML5...?"

    "Can I" is likely to ignore issues such as 'production readiness' and 'market (user) acceptance.'

Re: Perl + HTML5 + mod_perl?
by mkhan (Sexton) on May 20, 2011 at 19:51 UTC
    Thank you for the excellent feedback guys. I forgot to mention it is not a commercially HUGE project. It's a school project for my Master's. The focus is very strongly on the GUI that is why I thought of using HTML5. Backend operations are not gonna be very heavy or complex.
      In that case, by all means explore HTML5. But realize that you are not following the path already laid, but helping to lay the path! The HTML5 website points out strongly that anyone trying to use the draft without also belonging to the discussions will find it shifting out from under them.

      So sign up with that group and participate in the discussion. Explore some open issues in your experimental code, and share the results with the group. Not only will you get a grade, you will make real contributions to the project!

      What kind of Master's is it? Mine was all math, like spending a whole semester following one complexity proof.

Re: Perl + HTML5 + mod_perl?
by Anonymous Monk on May 20, 2011 at 18:01 UTC

    HTML5, of course, is merely a means of expression.   And, “the web page” that you are describing is merely a user interface to a much larger and more complex “back-end” system.

    The back-end system that you are describing might have been, in earlier days, described as “a batch-processing system.”   Or maybe, “an application server.”   Be very mindful that a suitable system probably already exists, and that it most certainly will also have a web-based UI available.

    You are definitely in the “requirements definition” stage, having not yet even begun the due-diligence that needs to happen to consider all of the relevant implementation options that you or this project might have.   You are, therefore, a long way (IMHO....) from being ready to consider questions of Perl, mod_perl, and/or HTML5 ...

    In fact, it is rather profoundly important at this stage to bear in mind that “this is not the Starship Enterprise.”   No matter where you may happen to be going, you are not “boldly going where no man has gone before.”

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-19 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found