Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: To Framework or not to Framework

by Bod (Parson)
on Nov 23, 2020 at 22:41 UTC ( [id://11124090]=note: print w/replies, xml ) Need Help??


in reply to Re: To Framework or not to Framework
in thread To Framework or not to Framework

This is a good opportunity to learn something new.

That seems like a perfect reason to try out a framework :)

It seems sensible to use whatever is installed on the shared hosting I use...except there isn't one! I have gone through this list and the only one listed there that is installed is Moose which is not what I am wanting.

Because several monks have mentioned it, and 1nickt talked about Yancy, I am thinking that Mojolicious would be a sensible choice. But the documentation says "...no requirements besides Perl 5.26.0 (versions as old as 5.16.0 can be used too, but may require additional CPAN modules to be installed)"

The shared hosting has v5.16 installed and I cannot directly install modules from CPAN because the compilers are turned off to shared hosting users. I have to contact support and then it's a lottery whether I get someone who installs the module or who says they are unable to. If there is going to need to be many modules installed before I can run Mojolicious under v5.16 then it could be a long time before I even get to write a line of code :(

The plan was to have the first version up and running by the weekend - four days away...
I knew it was going to be a steep learning curve but didn't expect the slope to be this steep, this soon!

Replies are listed 'Best First'.
Re^3: To Framework or not to Framework
by hippo (Bishop) on Nov 23, 2020 at 22:58 UTC
    I cannot directly install modules from CPAN because the compilers are turned off to shared hosting users.

    You can directly install Pure-Perl modules from CPAN as those don't require any separate compilers.

    If you are really stuck and need an XS module you could always cross-compile as a last resort. However, in your shoes I would break the shackles at this point and move off shared hosting and onto a VM. Your shared hosting will probably limit the scope of any persistent framework/middleware anyway.

    I have gone through this list

    That list contains things which aren't web frameworks and is pretty far from exhaustive. Earlier this year I submitted this quest response which is far more extensive (and even then I left quite a few out).


    🦛

      You can directly install Pure-Perl modules from CPAN as those don't require any separate compilers.

      I'm not sure I can install them via cPanel but, yes, I have in the past downloaded the Perl source and installed it in the appropriate subdirectory of the cgi-bin. My guess is that Mojolicious or one/some of its dependencies won't be pure Perl but worth a try.

      Thanks for the list...very helpful :)

        "My guess is that Mojolicious or one/some of its dependencies won't be pure Perl"

        As mentioned earlier "Very clean, portable and object-oriented pure-Perl API with no hidden magic and no requirements besides Perl 5.26.0 (versions as old as 5.16.0 can be used too, but may require additional CPAN modules to be installed)", you don't have to guess ;)

        I'm not sure I can install [Pure-Perl modules from CPAN] via cPanel

        FWIW, on my shared host with cPanel, I've even installed XS-based modules via cPanel. At one point, they upgraded perl (thus obsoleting the compiled modules I had already installed) and disabled gcc access; but one trouble-ticket later, and it was re-enabled, and cPanel would let me install those modules again. So cPanel itself isn't enough of a hurdle to prevent installing pure-Perl or even XS modules. But yes, some hosts who use cPanel might not be so friendly and allow you to install XS modules

        And even outside of cPanel's interface: since you can use lib ... in your script, you can upload Pure-Perl modules someplace in your user hierarchy, and direct your script to load modules from there.

        My guess is that Mojolicious or one/some of its dependencies won't be pure Perl

        I'm not sure on what basis you are making that guess. I am not a Mojolicious user but am well aware that their philosophy is not to have any dependencies. I've not seen anything from a cursory glance at the source to suggest that it isn't pure Perl either.


        🦛

Re^3: To Framework or not to Framework
by GrandFather (Saint) on Nov 23, 2020 at 22:52 UTC

    Can you not do the development on your local system in parallel with fighting the module install battle on the hosting system? That at least lets you know what module dependencies there may be.

    Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-19 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found