Purist theory often doesn't match reality. I have a story that illustrates that.

Way back when I was a C programmer we hired a well meaning QA head. One of her tasks was to bring in some code analysis tools. The engineering staff was tasked with evaluating them. We immediately set out on a realism test: Take a few pieces of heavily used common code that had few bugs in their source code revision tree and throw those at the tool. Then take some of our worst code -- mostly code we had outsourced -- that had pages and pages of revision history related to bug fixes and throw that at it. The bad code won. When we probed into why, a few things became obvious: The QA head was not pleased, which we found even more amusing. She started to insinuate that we were wrong since the analyzer used "standard metrics" that "don't lie." Our argument was that history is even less of a liar. She quit not long afterward. Score one for engineering. 8-)

This was over 10 years ago so I'm guessing a lot of those tools may be better now. But I think it's still true that a lot of theory doesn't match reality. The best guage of whether a given style is good is to look back historically at different coding practices and styles and see how they hold up in the real world.


In reply to Re: A matter of style by steves
in thread A matter of style by Ryszard

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.