What can we as a community do to promote higher quality code?

The first thing you would have to do is define what is: "high quality code".

Ask that question of 10 programmers and you'll likely get 11 definitions. I can think if 3 without trying:

  1. Code that meets it's specification.

    But if the spec. is bad, is the code good?

  2. Code that passes all it's tests.

    If the tests are incomplete is the code good?

  3. Code that works. (Or rather, it hasn't failed yet!)

    Is this premature? Immature? Negligent?

    Depends.

    1. How long has it been in operation?
      • Does it meet the spec?
      • Does it pass the tests?
      • Is the spec good?
      • Are the tests good?
    2. What is the worst that can happen if it fails?

And of course, any given answer to any of these questions is only as good as the person or process that produced it. How do you measure those?


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon

In reply to Re: Keeping perl credible in the eyes of the world.. by BrowserUk
in thread Keeping perl credible in the eyes of the world.. by Grygonos

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.