Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^5: using split

by GrandFather (Saint)
on Jun 05, 2007 at 19:41 UTC ( [id://619489]=note: print w/replies, xml ) Need Help??


in reply to Re^4: using split
in thread using split

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://619489]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-25 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found