in reply to 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? See my reply to Simpler alternative to modules for my thoughts on what is wrong with just using a ton of requires, how to do it better, and why the alternative is better.
  • Comment on Re: Re: Lots of subs in large program vs lots of small programs

Replies are listed 'Best First'.
Re: Re: Re: Lots of subs in large program vs lots of small programs
by Art_XIV (Hermit) on Oct 31, 2003 at 21:17 UTC
    And how is someone reading the script to know what function is defined where? Pod.
      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,.