Actually I don't think in many cases even a guru, let alone a lowly expert, can give a definitive "Yes, that is correct" answer. Most of the questions are pretty open ended and depend a great deal on context, or even on context at a particular moment in time.

The questions are intended more to catalyze thought processes and an appropriate approach to considering what constitutes "correct" code. A large part of programming is art and there is no ultimate test for good art (the test of time is fairly definitive, but impractical for most purposes).

The time spent validating an answer should be a direct function of the importance that the answer is correct. If it doesn't matter at all then don't check it. If lives depend on it then you probably need to document the validation process, execute the process, then sign off on the result. Picking an appropriate level of validation is something for which there really is no litmus test - just like determining if a coding answer is "correct".


Perl is environmentally friendly - it saves trees

In reply to Re^4: Is it correct? by GrandFather
in thread Is it correct? by GrandFather

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.