PHP 5.4.0 released
Posted Mar 8, 2012 18:01 UTC (Thu) by sorpigal
In reply to: PHP 5.4.0 released
Parent article: PHP 5.4.0 released
So what language is actually better suited for the job that PHP is used for all the time
Perl is better.
But Perl by itself is an incomplete solution. Almost all competing 'better' languages are incomplete solutions compared to PHP. Today I would advocate Mojolicious::Lite as a Perl-based simple PHP alternative.
It allows the 'developer' to write in one file the template and the code and it makes viewing the result in a web browser equally trivial.
# aptitude install libmojolicious-perl
$ mojo generate lite_app HelloWorld
$ ./HelloWorld daemon -l http://*:8080 & firefox http://127.0.0.1:8080/welcome & gedit HelloWorld
And I'm viewing and editing my one-page quick and dirty web site. Initially it's slightly more trouble than PHP for vastly superior results, making it very nearly as good for the ignorant beginner.
to post comments)