|Perl: the Markov chain saw|
Re: To module or not?by kiat (Vicar)
|on Apr 26, 2005 at 15:17 UTC||Need Help??|
I'm not answering your question directly but just wanted to reply and add that modules have helped me in the following ways:
(1) code reuse
- subs in ModuleA used by other modules
(2) better code organisation
(3) fixed one, fixed all
- a bug can be traced to a particular module and when it's fixed, it's solved for all modules that use it.
(4) easier code maintenance
If you've done some Flash, putting subs in modules is like placing images in the library. You can recycle the images any number of times. And when you make a change to an image in the library, the change is effected in all the raw flash files that use it.