Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Re: Perl Style Guides for Large Projects

by Anonymous Monk
on Nov 01, 2002 at 02:50 UTC ( [id://209623]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Perl Style Guides for Large Projects
in thread Perl Style Guides for Large Projects

Create a module for argument checking that all programmers can use when validating data coming into a method. This keeps a major source of redundant code in one place, and ensures that you know something about the safety of your code across the whole project. It also means that you can simply turn off argument checking if you want to for speed.

I, the omnipresent Anonymous Monk, wholeheartedly second this advice. It saves a lot of work and results in far simpler, more flexible software. It took me far too long to start doing this myself. Good stuff.

  • Comment on Re: Re: Re: Perl Style Guides for Large Projects

Replies are listed 'Best First'.
Re: Re: Re: Re: Perl Style Guides for Large Projects
by autarch (Hermit) on Nov 05, 2002 at 04:39 UTC
    Even better, get one off CPAN, like Params::Validate (which I wrote) or Getargs::Long.

Log In?
Username:
Password:

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

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

    No recent polls found