The bottom line is: if the company chooses some coding standards, you should adhere to them as much as possible. If you disagree with them, discuss them and try to have them changed, but don't advocate the right to bend them at your will: others may count on the fact that you're following them.

I think the core issue we are addressing can be summed up with the question "what makes coding standards good?"

My pragmatic, I think, outlook is that if the rules are too rigid, you can count ont them being cleverly circumvented when a reason to do so presents itself. (As in the OP.) If, on the other hand, they are flexible then they won't have to be circumvented at all.

It seems your outlook is that, regardless of how rigid they are, the coding standards should be followed. And not just their letter, but their intent. Petition for change is fine but, short of that, if the coding standard in place requires you to jump hoops then that's exactly what you should do.

Interesting. I think it might just boil down to personality. Some, like yourself, will follow both the coding standard itself and the intent of its author regardless of how doing so adds complexity to your task. Some, like me, will happily follow the coding standard itself but, when presented with a situation that is poorly addressed by the coding standard, I'll happily circumvent it if doing so enables me to more efficiently solve the real issue at hand.

The reason I think my outlook is pragmatic is that people like me exist. If a coding standard isn't written with the understanding that we exist, it will be less than optimal. And I suggest that any coding standard that is so rigid that it can actually be checked by software fails to take my existence into account. :-)

I guess you could argue that I should change. Maybe I should. But even if I do, there are a lot of people like me. And it just isn't pragmatic to expect them all to change. So, instead of changing, I think I'll just advocate better coding standards.

-sauoq
"My two cents aren't worth a dime.";

In reply to Re^9: On being 'critical' by sauoq
in thread On being 'critical' by herby1620

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.