There are many rumours about MVC and that things like cgi::application force a programmer to follow definite rules as he design his application, I have read about this way of making applications and didn't find any advantage in this way.

MVC that's what make me curious, is it really better than simply using single scripts for single tasks

Reading is never as convincing as understanding :) and the right kind of exercise can promote understanding

I remember reading about MVC before I did any OOP, and I didn't see any benefits either :)

Its like trying to understand the benefit of stick-frame-housing-in-earthquake-zones when you're living in a cave :) You mean to tell me I have to cut trees down, then nail them ... but the cave is right there :)

Based on this thread along with is this script secured enough from internet attacks, I believe you need to read/write more code, more programs, more big and OO programs, before you can appreciate the benefits of MVC or scaffolding like mojo/dancer/catalyst/cgi-app

Oh look, a single script for a single task, without MVC or OOP, admin.cgi

use MyShinyPoodle::Admin::CGI; MyShinyPoodle::Admin::CGI->run;

Now you can test MyShinyPoodle::Admin , and it doesn't depend on any html templates or protocols like CGI

See also Object Oriented Orientation

Good luck


In reply to Re^3: web applications: what is the correct way to realise web applications by Anonymous Monk
in thread web applications: what is the correct way to realise web applications by tercoz

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!
  • 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:
    & &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.