Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

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

Perl gives you a whole pile of rope to do with as you like and by default doesn't do much about telling you about knots, kinks and loops tangled around your neck. Strictures go a little way toward helping coil things down in a tidy fashion.

Ok, without the heavily drawn metaphorical image:

Strictures cost almost nothing to add. In fact most editors will allow you to generate a template file that is used to add default text to a new document. Even experienced programmers generate typos from time to time and as with any form of bug, the sooner the error is detected the cheaper it is to fix. Indeed some editors perform dynamic syntax checking so typos are picked up immediately as the code is being entered.

Sure, a test suite is a nice thing to have, but at the cost of at least doubling the initial cost of producing the code. Many people think them worth writing despite that. Strictures cost effectively nothing, require very little interpretation (especially for common errors), yet pick up the most common scripting language programming errors essentially immediately. Why wouldn't you use them - always.

Dogmatic and heavy-handed? Quite possibly. Annoying? To a super-coder who never makes a typo maybe, but it really shouldn't worry most mere mortals. With good reason and in the interests of saving people time and making their lives happier? Absolutely! (Oh, and it should be "PerlMonks'" btw ;).)


DWIM is Perl's answer to Gödel

In reply to Re^5: using split by GrandFather
in thread using split by maurkb

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2021-05-14 09:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (149 votes). Check out past polls.

    Notices?