Hi all,

The normal (TM) way to create websites is to keep code from different languages mainly separate. The exceptions I have seen so far include generating Perl classes from database tables, embedding HTML and/or DHTML in Perl and embedding javascript and/or CSS in HTML files. These are low-overhead solutions, though not as elgant as they could be. I have also seen a product that stores all code (UI, processing, database meta-language, triggers of various kinds) in the database and has a form-painting interface. But that last solution was rather inflexible and performed too poorly.

And whereas a popular DB solution is to use DBI to send SQL to a database, it's a bad idea to combine objects with embedded SQL in a mult-user environment instead of encapsulating properly designed transactions (e.g. using stored propcedures instead).

It seems to me that Perl offers the tools to produce a single-language (*) solution which both performs, manages transactions properly and can be easy to use. For example, a framework class could inherit HTML, CSS, javascript and database object generation classes, all capable of generating tables and UI sources from a single Perl class designed by the (user-) programmer.

The question I am seeking wisdom for is - is it worth it to fly in the face of the traditional approach of separate sources for different languages? Or to put it another way, is maximising language integration a holy grail or is it destined to being over-compromised and unpopular?

Update: * I am not considering rewriting one language in another, but instead using Perl to integrate the sources of different languages that pertain to one conceptual class, in the interests of maintanability

One world, one people


In reply to Maximising Language integration: Holy Grail or Dystopia? by anonymized user 468275

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.