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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c7a5c447f88aecaa X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-28 09:51:49 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Matthew Heaney" Newsgroups: comp.lang.ada Subject: Re: Pre-Elaboration clarification. Date: Wed, 28 Nov 2001 12:55:30 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:17116 Date: 2001-11-28T12:55:30-05:00 List-Id: "Clueless" wrote in message news:v59L7.42261$RI2.21722340@news2... > Are there any basic rules of thumb that an "Intermediate" level > programmer(as I was declared by my CS teacher) should follow in Ada as > regards data types and spec files? In general, you should always defer package dependencies to the body, or to a child. > I've made a BIG point of avoiding unecessary coupling as you pointed out. > As I'm not writing very "large" programs in Ada yet, I havent really run > into any problems with Data types and elaboration. My comment wasn't about elaboration issues specifically. But it seemed as if you had a dependency on package Command_Line in a spec, when it wasn't strictly necessary. > Is there anything that > I should be practicing regularly, which might be peculiar to Ada95, that > would help me avoid problems once I get into developing "larger" pieces > of software? Managing dependencies among compilation units isn't specific to Ada95 -- the techniques are necessary in C++ as well. You can read John Lakos' Large Scale C++ Software Design for ideas that apply to either C++ or Ada95. There's also a section in Norm Cohen's book, about minimizing dependencies among Ada packages.