Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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


In reply to perl as a php alternative by iaw4

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-18 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found