I agree and disagree. For the most part, "high level" good coding practices, such as: document inline, create useful abstractions, organize your code well, etc, can be applied to nearly any language. However, there are many (fairly general) good practices which cannot necessarily be applied everywhere or to any language.

For example, using descriptive variable names or name-spaces: some languages put limits on your ability to do this, often by draconian identifer length limits.

Another example is limiting side-effect. What is even meant by side-effect can be very different from one language to another, and the notion of where the grey line between good side-effect and bad side-effect is even more tightly coupled to the language in use.

Anyway, that's just nit-picking, sorry, but the point I guess I meant to make is that "good practices" are something that has to be a little more specific than being "smart, safe, efficient and innovative." That's basically being "good, safe, good, and good" at programming (I give credit to "safe" because it's at least one thing on that list that isn't self-evident... but it is nearly so). I guess my point is that "good, safe, efficient, and innovative" are more like a philosophy or a mantra, than a good practice, and good practices do tend to be at least somewhat language specific.

------------ :Wq Not an editor command: Wq

In reply to Re: Re: Do good Perl practices carry over to other coding? by etcshadow
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.