in reply to Arcitectural considerations with modules
This file contains methods and functions that work together. For example, the do_this() method may change a scalar value in the function_call() subroutine.
Sounds like they should be methods on an object, so they can share state explicitly, instead of conceiling it behind hidden side effects.
You’ll need to answer kwaping’s question before anyone can make a concrete suggestion, though. Your best bet is probably to post actual code (assuming it’s not huge).
Makeshifts last the longest.
|
|---|