Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
I've been a long time contributor and user of C::A and have written numerous articles & tutorials on using it that are posted on the C::A wiki (linked to in a previous post)

If this is what you consider a big block of C::A setup stuff, then maybe you're right.

sub setup { # grab arguments my $self = shift; # set startup run-modes $self->run_modes ( # my site run modes 'generate' => 'generate_statistics', 'overview' => 'display_default_overview', ); }
But considering all I had to do to start building a new application was create my Application.pm file, inherit from my C::A Super Class module, and fill it with that bit code, I'd have to disagree with you.

By inheriting from my own Super Class built on C::A, those 3 quick steps give me access to cgi query params, session management, login authorization, conf file access, template file access, database connection & querying, logic to define which users have access to which "if/else" or "run-mode" blocks, MIME headers, cookie access, error handling and numerous other features.

What you're missing is that I can now concentrate on building the actual application logic at hand instead of worrying about where to store session information, connecting to the database, setting a cookie properly, loading an HTML::Template or T::T file, etc.

By relying on a Super Class module you can build stand-alone application and large groups of applications that all use the same code base, thus you save yourself time, energy and headaches.

Furthermore, by relying on compartmentalized code for basic operations you are safe to change those compartments at the Super Class level and know that all your applications will continue to run as they did before.

Sure it's all something you could roll on your own or build as you go. Yes it's something that you could acomplish on your own by making your code better and more modular in the first place.

All C::A is is a framework for building better applications faster. Maybe it's not the be-all-end-all of frameworks for build CGI app's but it's one of the best ones available right now, and it's supported by a large group of programmers like my self that try very hard to make sure it makes the easy things easy and the difficult things possible.

I mean, after all .. we could all be programming in binary, why add another layer of complexity and confusion like PERL to the equation.

In reply to Re: Why CGI::Application? by stevecomrie
in thread Why CGI::Application? by sdbarker

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • 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, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others avoiding work at the Monastery: (6)
    As of 2014-07-29 01:34 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      My favorite superfluous repetitious redundant duplicative phrase is:









      Results (211 votes), past polls