comp.lang.ada
 help / color / mirror / Atom feed
From: adam@irvine.com (Adam Beneschan)
Subject: Too many WITH's? (was: Perl script to show dependencies)
Date: 1996/10/24
Date: 1996-10-24T00:00:00+00:00	[thread overview]
Message-ID: <54mhm3$g36@krusty.irvine.com> (raw)
In-Reply-To: m2lod09lv8.fsf@waporo.muc.de


In article <m2lod09lv8.fsf@waporo.muc.de> Rolf Ebert <re@waporo.muc.de> writes:

 >I was not interested in the dependancies which concern the compiler, but
 >in the logical dependancies between the modules.  I wanted to apply the
 >rule of a thumb saying "if there are too many with clauses (~> 8), think
 >about your design".  

Just curious--where does this rule of thumb come from?  Also, does it
apply to Ada 83, or just Ada 95?  (It does make a difference, since
tagged types and child packages could make it easier to break down a
module into smaller cohesive units that don't have as many
dependencies.) 

Naturally, I do follow this rule of thumb literally, since I'm always
thinking about my design anyway regardless of how many WITH clauses
there are.  :) Seriously, though, I'd never heard that having more
than eight WITH clauses was either undesirable in itself, nor that it
was an indicator of some undesirable feature of the design that needed
looking into.  (I think I have heard a similar rule of thumb in
connection with "top-down design", but that dates from a time when the
only modules were subprograms, not packages, so I wonder whether the
rule should still apply.)

                                -- thanks, Adam





      reply	other threads:[~1996-10-24  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-10-05  0:00 Perl script to show dependencies Rolf Ebert
1996-10-10  0:00 ` Robert Dewar
1996-10-12  0:00   ` Keith Thompson
1996-10-20  0:00   ` Richard Riehle
1996-10-21  0:00   ` Rolf Ebert
1996-10-24  0:00     ` Adam Beneschan [this message]
replies disabled

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