iaw4 has asked for the wisdom of the Perl Monks concerning the following question:
Over the last 4 weeks, I have finally decided to learn php and mysql and written a 2000-line web system with it. About 50 files, 40 lines each. php has a few aspects that seem great: (1) it comes already installed--zero effort on ubuntu; (2) embedding code in HTML is easy; (3) the $_SESSION management is great, and I like the "global" keyword; (4) php has a wealth of built-in functions and google is good about finding the right docs, with mysqli being particularly convenient; (5) php has one standard, not different ones.
BUT php as a language is an inconsistent and complete mess. worse, what it was good for (which is quick-and-dirty embedded web pages) has been transmutated beyond recognition into a wannabe object-oriented system. it's also real strange. for example, classes allow declaration of variables, but this is not possible outside. huh? oh, functions just got it too in php7, but the global namespace still does not. what gives?? I wish php7 had focused on cleaning up the basics, such as variable declarations and a decent type system.
of course, complexity has also happened to a lot of other web frameworks. the web is easy for users and hard for programmers. yes, I understand that for large projects, MVC and injections are a good thing. but there are many small web projects maintained by part-timers, where the learning curve and complexities of web frameworks are better avoided.
so now I am wondering about whether there exists a non-mess alternative to quick-and-dirty php (not to the full-blown drupal-joomla-mvc-etc web framework alternative). perl5 (and perl6) seem like much cleaner languages. my project is even small enough that I could recode it in a day or two. BUT, if I do this, I want an embedded language with a future. are there still any good and active embedded-webpage perl communities? Mason's last update, accdg to wikipedia, was 4 years ago. embperl does not even have a wikipedia page. are they still active? is there one "quick-and-dirty" easy-ubuntu-install perl-based embedded language alternative to php, with an active development and future path to perl6, that is worth switching to and which is/has become the standard for this purpose?
opinions and advice appreciated.
/iaw
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: perl as a php alternative
by Your Mother (Archbishop) on Dec 05, 2015 at 04:16 UTC | |
by iaw4 (Monk) on Dec 06, 2015 at 17:58 UTC | |
by Your Mother (Archbishop) on Dec 06, 2015 at 22:16 UTC | |
by choroba (Cardinal) on Dec 06, 2015 at 20:12 UTC | |
Re: perl as a php alternative
by hippo (Archbishop) on Dec 05, 2015 at 12:17 UTC | |
Re: perl as a php alternative
by ctilmes (Vicar) on Dec 05, 2015 at 14:14 UTC | |
by ctilmes (Vicar) on Dec 05, 2015 at 14:45 UTC | |
by iaw4 (Monk) on Dec 05, 2015 at 17:46 UTC | |
by Your Mother (Archbishop) on Dec 05, 2015 at 18:29 UTC | |
by Your Mother (Archbishop) on Dec 05, 2015 at 19:18 UTC | |
by Laurent_R (Canon) on Dec 06, 2015 at 10:29 UTC | |
| |
Re: perl as a php alternative
by graff (Chancellor) on Dec 05, 2015 at 19:34 UTC | |
Re: perl as a php alternative
by QuillMeantTen (Friar) on Dec 05, 2015 at 10:28 UTC | |
Re: perl as a php alternative
by karlgoethebier (Abbot) on Dec 06, 2015 at 13:01 UTC | |
Re: perl as a php alternative
by Anonymous Monk on Dec 05, 2015 at 04:02 UTC | |
by iaw4 (Monk) on Dec 06, 2015 at 17:48 UTC |