Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Perl is by many considered to be a glue language. Glue with an external library, for instance. Which then becomes one or more modules on the Perl side of things.

Whenever you start development of such a (set of) module(s), you need to make a lot of choices. And some of them are very basic.

The most basic one, I think, whether the modules that you develop will be Perl-centric or external library-centric. The latter will (probably) give you complete control of all of the functionality of the library (which you may or may not be interested in). The former will give nice extra functionality in Perl. But it may be suffering from the "thick rubber glove" syndrome, i.e. you don't have a feeling anymore for what in fact is happening behind the scenes, and you may not have all the functionality of the external library at your disposal.

Personally, I would develop a Perl-centric interface. I have two reasons for that:

  1. It is what you're used to when programming Perl.
  2. If it is a good interface, it might be transferrable to other external libraries.

I was wondering whether the Perl Monks have anything to say about these choices, and why one should do it one way or the other.


In reply to Follow the Interface? by liz

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and a log crumbles through the grate...

    How do I use this? | Other CB clients
    Other Users?
    Others imbibing at the Monastery: (8)
    As of 2018-05-25 08:08 GMT
    Find Nodes?
      Voting Booth?