Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
CGI.pm was a simple low- or mid-level framework. It has been deprecated. It is still supported for existing projects, but no one should start a new web project with it.

I'd like to address these points specifically because they will serve to reinforce some misunderstandings about CGI.pm if unchallenged.

Firstly, I don't think anyone would call CGI.pm a framework in the modern sense of the word. It is a module which implements the CGI protocol and is only one of several which do so. Some of the frameworks which you and your respondents have mentioned may even use CGI.pm as a frontend but it hardly qualifies as a framework in itself. Note that for smaller sites a framework might be neither necessary nor even desirable. There are of course pure CGI frameworks such as CGI::Application - perhaps this is what you were thinking of?

CGI.pm has not been deprecated. I cannot stress this enough. Some of its methods have been deprecated and with good reason - these are covered in the docs. However, the rest of the module is alive and well and is being maintained. It had 10 stable releases last year.

The thought that "no one should start a new web project with it" is misguided. Anyone thinking of starting a major new web project (multiple servers, distributed data, single-sign-on, etc.) will probably find it much easier to use a framework instead but for simpler scenarios CGI.pm or its equivalents can be very well suited indeed.

You might think of CGI.pm as the IRC of its field. It is eschewed by the hip crowd looking for the flashy new features but if used properly it can get the simple jobs done well and with the minimum of fuss.


In reply to Re: UP-TO-DATE Comparison of CGI Alternatives by hippo
in thread UP-TO-DATE Comparison of CGI Alternatives by iaw4

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-18 00:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found