in reply to Re: Re: Lots of subs in large program vs lots of small programs
in thread Lots of subs in large program vs lots of small programs

And how is someone reading the script to know what function is defined where? Pod.
  • Comment on Re: Re: Re: Lots of subs in large program vs lots of small programs

Replies are listed 'Best First'.
Re: Re: Re: Re: Lots of subs in large program vs lots of small programs
by tilly (Archbishop) on Oct 31, 2003 at 22:09 UTC
    And how is someone reading the script to know what function is defined where?
    Pod.
    Red flag. You are asking for synchronization of documentation and code, and then further asking for everyone to always keep in mind all of the relevant documentation whenever they produce more code.

    If this was an effective solution, then good programmers wouldn't mind lots of global variables and lots of tightly coupled functions. After all, if you can keep track of everything, you can always come up with shorter answers that way.

    For more thoughts on why verbose documentation is not a good resolution to programming problems, see the discussion starting at Re (tilly) 2 (disagree): Another commenting question,.