Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: When is a module too minimal?

by hv (Parson)
on Jul 19, 2006 at 11:18 UTC ( #562257=note: print w/ replies, xml ) Need Help??


in reply to When is a module too minimal?

Your question seems rather to be "when is a script too minimal?" If the content of the module is sensible, then I have no problem with an entire script looking like:

use MyModule; MyModule->go;

I see no reason why you'd want to require that a script show some minimum complexity.

The key though is that the module should not just be a dumping ground for the stuff in the script - it should follow the normal principles of module design, so that each method/function should perform a single clearly defined function that is wll described by its name, and the collection of methods should be related to each other in a way clearly encapsulated by the module name.

If the module does what it should, and if one of its methods does everything the script wants and needs, then that's an ideal situation.

Hugo


Comment on Re: When is a module too minimal?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2014-09-19 03:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (129 votes), past polls