Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

RE: One Big script or many little ones?

by Ovid (Cardinal)
on Jun 15, 2000 at 20:58 UTC ( [id://18320]=note: print w/replies, xml ) Need Help??


in reply to One Big script or many little ones?

Take a look at those several scripts and see how they relate to one another. It's good to put those scripts into modules where they can be reused.

For myself, I find that when I am coding, I often develop a series of "favorite techniques" that have a similar theme (like being CGI or DBI related). When I do that, I think it's good to take those separate bits of code and combine them into one module of related functions. For you, instead of having 5 scripts, you might only have two, if their functions are combined along similar lines.

It sounds to me like what you are doing is creating modular code. This is a Good Thing. Just as Larry Wall (I think) said that a program should do one thing and do it well, a module should do one thing (or handle one set of related tasks) and do it well.

  • Comment on RE: One Big script or many little ones?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found