Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

There's an old german proverb:

Follow the traditions until you know what they're for. Then do whatever you want.

That broadly applies to your question. Rules like "never do X," and "always do Y" are the condensed version of some larger, more complicated piece of wisdom. But those rules don't actually teach you the wisdom. Take "never use symbolic refs" for instance. It's easy enough to follow that rule, but what do we learn from doing so?

Not much.

If we dig into what the rule is for, we discover concepts like data localization and scope management, which offer much more insight about programming than simply avoiding symbolic references. Learning to think about those issues makes us better programmers, where just following the rule only keeps us from getting stuck in one well known tarpit.

Always/never rules are no substitute for actual programming wisdom. They're just the rare cases where some principle works so very much of the time that few people will call bullshit if you state them in extreme terms. But never (yes, I'm aware of the reference) just accept always/never rules as doctrine. Dig into them, and find out what they're really saying. Learn the principles, then learn the limits of those principles. Once you know how the principles work, you won't need the simple little always/never rule any more.

As an aside, I've noticed a reduction in the number of people saying, "use or die!" here in the monastery since people actually started trying to read it. And version 2.98 (which happens to be on my current machine) is a lot cleaner than previous versions.

In reply to Re: Never, never, never by mstone
in thread Never, never, never by johnnywang

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others lurking in the Monastery: (3)
    As of 2018-02-26 04:07 GMT
    Find Nodes?
      Voting Booth?
      When it is dark outside I am happiest to see ...

      Results (316 votes). Check out past polls.