??? 02/26/07 09:32 Read: times |
#133693 - On modular programming Responding to: ???'s previous message |
David Gal said:
public This_Entire_File Generally, this would be a bad idea. One of the ideas behind Modular Programming is that each module only "publishes" (or "exposes") a certain set of functions and/or data that will be needed by other modules. Other functions and/or data are "private" to the module, and of no concern to the rest of the program. Doing this helps reduce the risk of other parts of the program fiddling with things that it shouldn't and, thus, messing things up. The downside may be a performance penalty - but engineering (including software engineering) is always about trade-offs! |