Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Remove CGI.pm from Perl Core?

by LanX (Saint)
on May 28, 2013 at 09:06 UTC ( [id://1035551]=note: print w/replies, xml ) Need Help??


in reply to Remove CGI.pm from Perl Core?

I think core distribution should always be bundled with a web module, which allows to immediately start a web-app from scratch off the cuff.¹

I.a.W before excluding CGI from core a better alternative should be included in parallel for a considerable transition time.

Maybe something like Mojolicious?

Cheers Rolf

( addicted to the Perl Programming Language)

¹) hopefully clearer now! =)

Replies are listed 'Best First'.
Re^2: Remove CGI.pm from Perl Core? (from scratch)
by Anonymous Monk on May 28, 2013 at 09:35 UTC

    I think core distribution should always be bundled with a web module, which allows to immediately start a web-app from scratch.

    from scratch is very low-level, why bother anymore with so low-level?

    Sure File::Spec does job, but I'd rather Path::Class anyday

      Sorry, wrong wording!

      I meant instantly from a "virgin" installation.

      And Mojolicious is pretty high level compared to CGI and has no dependencies.

      Cheers Rolf

      ( addicted to the Perl Programming Language)

Re^2: Remove CGI.pm from Perl Core?
by jakeease (Friar) on Jun 01, 2013 at 06:06 UTC

    So, if Mojolicious, say, were to find its way into core, would it make sense to replace the "more essential" parts of CGI.pm with wrappers for equivalent Mojolicious functions? I realize that this question is or at least borders on being irrelevant to the question of whether either belongs in the core, but maybe it could be a step in cleaning up CGI,pm...

      would it make sense to replace the "more essential" parts of CGI.pm with wrappers for equivalent Mojolicious functions?

      No, you can't change the guts of CGI.pm without breaking everything that makes CGI.pm what it is (CGI.pm), that's how old and quirky feature-full it is -- one of its design features is that you can edit CGI.pm to configure it how you prefer

      but maybe it could be a step in cleaning up CGI,pm...

      Not really, you're not the first to express similar thoughts in this discussion, but have you ever looked inside CGI.pm or edited it or submitted a patch? Heard of CGI::Simple?

      Nicholas Clark recently said This is always the case. Talk is cheap, and there is a lot of it.

      All the folks who are really interested have started forking already :)

Re^2: Remove CGI.pm from Perl Core?
by sundialsvc4 (Abbot) on May 28, 2013 at 13:48 UTC

    ... whereas I disagree with that notion quite strongly.   Although many of us may be accustomed to spending most of our daily grind, grinding out web applications, the Perl language is used for anything and everything, every day.   The Core ought to be a collection of both mandatory-things and often-useful things ... but, in the latter case especially, always rather small things.   No kitchen-sinks allowed here.

    This is one of the most significant impacts of PHP’s very un-modular architecture, and one that we want to avoid in this tool:

    -rwxr-xr-x 1 root wheel 32222704 Jul 31 2012 /usr/bin/php
    -rwxr-xr-x 1 root wheel 86000 Jun 24 2009 /usr/bin/perl

    “Admittedly by-design,” PHP is a great big phat language that is targeted for writing web-sites and therefore good for not much else ... although I certainly have seen it being used for scripting.   Perl’s “Core” should be lean, mean, and useful ... and emphatically not a substitute for having to separately install modules from CPAN (or elsewhere) as an additional step.   (We already have several “bundled packages”available to simplify common installs.)   PHP’s designers intentionally did what they did for the PHP tool, and I am here neither to praise nor to bury that engineering choice.   But to do the same, IMHO, would not be the right thing to do engineering choice for the Perl tool.

    IMHO, the true strength of Perl is:   91007 Uploads, 27617 Distributions, 121586 Modules, 10676 Uploaders ... good for what ails you, no matter what it may be, and all in (to quote Disney’s Aladdin), “itty-bitty living space.”

      Your perl binary is little more than an empty shell -- all the fat (1,5 MB or thereabouts) comes dynamically linked from libperl. See ldd /usr/bin/perl

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-25 06:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found