comp.lang.ada
 help / color / mirror / Atom feed
From: ncohen@watson.ibm.com (Norman H. Cohen)
Subject: Re: compilation time [was Re: Magnavox consultant]
Date: 23 Oct 1994 15:24:38 GMT
Date: 1994-10-23T15:24:38+00:00	[thread overview]
Message-ID: <38dv7m$rrh@watnews1.watson.ibm.com> (raw)
In-Reply-To: 386ls1$lu7@news.delphi.com

In article <386ls1$lu7@news.delphi.com>, tmoran@bix.com writes: 

|> That raises the interesting question of how the number of with's
|> scales with total program size in the real world.  Presumably in a
|> good modular design it's much less than linear, but how much?  There
|> are rules of thumb about 'a single module shouldn't be more than
|> N lines' - should a single module not have more than M with's?

The high priests of software engineering methodology measure this
characteristic in terms of "fan-in" and "fan-out" in a module dependency
graph (except that, lacking Ada's formalization of what it means for one
module to depend on another, some SE methodologists speak of module
"controlling" module B (i.e., calling its routines) rather than of B
"depending on" A (which also encompasses data dependence).  In general,
high fan-out (large numbers of with'ed units) is bad and high fan-in (a
unit being with'ed by many other units, and thus representing a
fundamental, reusable abstraction) is good.

Various books provide specific numbers, but these numbers seem highly
dependent on the language and on the strategy for forming cohesive
modules.  In addition, the citing of specific numbers is dangerous
because, even though these numbers are intended as rough guidelines,
meant guide intution rather than to supplant it, specific numbers often
find their way into rigid, naively enforced  programming rules.

--
Norman H. Cohen    ncohen@watson.ibm.com



  parent reply	other threads:[~1994-10-23 15:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-10-20 21:01 compilation time [was Re: Magnavox consultant] tmoran
1994-10-21 13:23 ` John Cosby
1994-10-23 15:24 ` Norman H. Cohen [this message]
     [not found] <38afut$8m9@news.delphi.com>
1994-10-24 11:15 ` Robert I. Eachus
1994-10-24 23:19   ` Bob Duff
1994-10-25  4:16     ` David Moore
1994-10-25 13:58     ` Norman H. Cohen
1994-10-25 23:33       ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1994-10-20  7:29 tmoran
1994-10-20 14:22 ` Norman H. Cohen
1994-10-20 18:15 ` Kent Mitchell
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox