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

Replies are listed 'Best First'.
Re^2: Yet another set of Perl best practices
by salva (Canon) 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...