From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,23cf9f1e93744eed X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-26 07:25:06 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn12feed!wn14feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!sccrnsc01.POSTED!not-for-mail Message-ID: <3F228F3B.9020203@attbi.com> From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Need advice re package organization. References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 66.31.71.243 X-Complaints-To: abuse@comcast.net X-Trace: sccrnsc01 1059229505 66.31.71.243 (Sat, 26 Jul 2003 14:25:05 GMT) NNTP-Posting-Date: Sat, 26 Jul 2003 14:25:05 GMT Organization: Comcast Online Date: Sat, 26 Jul 2003 14:25:05 GMT Xref: archiver1.google.com comp.lang.ada:40834 Date: 2003-07-26T14:25:05+00:00 List-Id: Bobby D. Bryant wrote: > Any suggestions, either for my specific example or for more general > considerations? The "right" answer to this question tends to be heuristic. One package is probably too few, one (child) package per final type may be too many. If your (final) object types are going to be composed of component types, you almost certainly want one set of packages of components, and another of objects. I would start with that organization, and specialize using child packages if there are types that are difficult to implement, not generally used, or where collisions between operation names are going to cause problems when you have a use clause for the main package. Figuring out the best organization is tough, and often you will discover a problem with the hierarchy you have chosen once you start implementing it. Don't worry, go ahead and change it. That is what text editors are for. You don't need to find the perfect decomposition, just avoid bad ones. And a bad decomposition shows up when it starts making work for you, rather than eliminating it. Of course, whatever organization you choose, you should sketch it out first, write the package specs, the main program, and then the package bodies. -- Robert I. Eachus "As far as I'm concerned, war always means failure." -- Jacques Chirac, President of France "As far as France is concerned, you're right." -- Rush Limbaugh