Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: perl as a php alternative

by ctilmes (Vicar)
on Dec 05, 2015 at 14:14 UTC ( #1149464=note: print w/replies, xml ) Need Help??


in reply to perl as a php alternative

For quick and dirty, I would recommend Mojolicious::Lite, (see the Mojolicious::Guides::Tutorial)which offers all the power of full Mojolicious with some syntactic sugar to make it quick and easy to build a simple site. You also have an easy migration path to full Mojolicious as desired.

There is a ton of great documentation on line and some great videos: http://mojocasts.com as well as youtube.

Replies are listed 'Best First'.
Re^2: perl as a php alternative
by ctilmes (Vicar) on Dec 05, 2015 at 14:45 UTC
      thanks, everyone. wikipedia is indeed a first goto source for me before I investigate anything further.

      I played with mojo 3 years ago and thought it was very clever. too clever for my needs. sometimes simple is good.

      the "many choices" is not always the best. I think this is why php survived. there was no one single perly choice with good prospects. (there are many abandoned projects; building a website requires betting on the underlying framework.) of course, at some point below, variety must stop. perl would not have succeeded with 20 projects. there is one perl5 project and one perl6 project.

      so, if I start now, let's say I want a php-like embeddable scripting language that has:

      1. a project with more than 5 core developers and likely survival for a decade.
      2. perl6 syntax and perl6 cpan
      3. $_SESSIONS[]
      4. easy ubuntu install
      is there a project that checks these four boxes? mojo? /iaw

        PHP survived because it takes nearly no programming skills at all and appeared at the jump when the best Perl options (modperl, fastcgi) were hard to install and the other good high level languages had no real web presence; 15 years ago. This is also why nearly everything done with PHP has been plagued by security problems. If you like the style, stick with it. You can absolutely do the same thing in Perl but it would be silly.

        • Catalyst is a decade old already. Mojo isn’t going anywhere. Dancer has a big community. Packages like Template::Toolkit and DBIx::Class have dozens and dozens of contributors, like me and a few other monks.
        • No. Perl6 is not ready and it is a much more sophisticated language than Perl5 and PHP. It will not reward junior devs but punish them. It will be one–two years after its first real release when solid frameworks will appear. Till then, here be little but dragons.
        • Every web framework has sessions out of the box and Mojo in particular is more secure out of the box. PHP on the other hand is trivial to screw up and write insecure code and there are ooooooodles of terrible examples and advice for it out there. It’s basically guaranteed to mess up if you don’t know good practices. Perl is also… but not as badly or automatically. The community has a strong sense of best practices v dangerous practices.
        • Everything in Perl is easy to install excepting some XS/Image packages. perlbrew (update, fixed link), App::cpanm, etc.

        Also, wikipedia should never be your source for this kind of information and should be treated with some skepticism for all other information. Mason’s last update was 6 months ago.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2022-08-14 10:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?