The original question is posed backwards.

It's not a question of "Do good Perl practices carry over to othe rcoding?", but rather "Do good coding practices carry over to Perl?". To which the answer is an obvious 'yes, of course, to a degree suited to the situation'.

For a twenty line html page with nothing remarkable that anyone can understand in the blink of an eye, it would be a waste of resources to comission a pre-coding study, flowchart the process, create a coding standard, comment every line, and document testing and revisions. On the other hand, all that might prove very useful when putting together a 1,000-page website.

But "preparation and documentation adapted to the situation" is a triste banality.

As for embracing advances, the original question contains the conundrum: "be safe and innovate". "Stay dry and get wet". Everyone wants the advantages of the latest technology (the flexibility of dhtml, the styling and maintainability of CSS) with the reliability of HTML 1.0. So, once again, it's situation that tips the balance one way or the other. There is no hard and fast rule. One client wants to simply deliver data to their clients and reliability is paramount. Another is trying to catch the limited attention span of teenagers and flashiness is paramount. Another wants to be able to maintain pages internally so maintainability is paramount.

In general, the only place unbendable rules are appropriate are in one's most basic definition of one's self, but that's another topic.....


In reply to Re: Do good Perl practices carry over to other coding? by punchcard_don
in thread Do good Perl practices carry over to other coding? by bradcathey

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.