Something that you should consider later on..

There are various philosophies of APIs, interfaces between not just a program and users, but the interface between the coder and what you are using.

One possible philosophy is as follows.

A script is not meant to be solid. A script is throw away. A script may be quite short, although it may set off a chain of complex events.

One of the wonderful things of perl is that you can store complex code in modules. And scripts can make calls in various ways to library code (modules, etc).

Per this kinf of ideology- The way to make your 'code' solid, would be to set up a test suite for your functions and procedures.
After that, a script would merely take in input perhaps, check it, and perhaps spit output or feedback.

Thus, seeking a 'solid' script could be considered to be- finding the perfect cup from which to drink beer. When perhaps the beer's source is more important.

Again, this is just one way to look at it.
I hope this sounds interesting and doesn't annoy too much.


In reply to Re: Script Critique by leocharre
in thread Script Critique by drodinthe559

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.