Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Yet another set of Perl best practices

by Anonymous Monk
on Aug 24, 2012 at 12:35 UTC ( #989516=note: print w/ replies, xml ) Need Help??


in reply to Yet another set of Perl best practices

Make your subs/methods meaningful.

Make your subs/methods names meaningful.

Now if only there was a book of examples of each practice :)


Comment on Re: Yet another set of Perl best practices
Re^2: Yet another set of Perl best practices
by salva (Monsignor) on Aug 24, 2012 at 12:45 UTC
    No, I really mean the subs/methods, not their names.

    IMO subs/methods should do something specific, clear and easy to explain (at least, once you have a good vocabulary for the problem space at hand).

    Though, if you have problems naming your methods, it is probably a good indication that you are not doing that right.

    Maybe meaningful is not the right word here...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2014-11-01 01:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (227 votes), past polls