comp.lang.ada
 help / color / mirror / Atom feed
From: Dmitry A. Kazakov <mailbox@dmitry-kazakov.de>
Subject: Re: Visibility problems with package instantiations.....
Date: Thu, 04 Dec 2003 10:16:30 +0100
Date: 2003-12-04T10:16:30+01:00	[thread overview]
Message-ID: <cnttsvs7u10itbu5g52ecd54haniqcq19s@4ax.com> (raw)
In-Reply-To: u7k1d6aei.fsf@nasa.gov

On 03 Dec 2003 13:09:25 -0500, Stephen Leake <Stephe.Leake@nasa.gov>
wrote:

>Dmitry A. Kazakov <mailbox@dmitry-kazakov.de> writes:
>
>> On 02 Dec 2003 11:20:08 -0500, Stephen Leake <Stephe.Leake@nasa.gov>
>> wrote:
>> 
>> >Dmitry A. Kazakov <mailbox@dmitry-kazakov.de> writes:
>> >
>> >> On 01 Dec 2003 11:31:19 -0500, Stephen Leake <Stephe.Leake@nasa.gov>
>> >> wrote:
>> >> 
>> >> >Dmitry A. Kazakov <mailbox@dmitry-kazakov.de> writes:
>> >> >
>> >> >> On 30 Nov 2003 23:45:51 -0800, petter.fryklund@atero.se (Petter
>> >> >> Fryklund) wrote:
>> >> >
>> >> >> >Our CM policy
>> >> >> >also dictates a directory structure with every unit in it's own branch
>> >> >> >leading to a large tree.
>> >> >> 
>> >> >> It is a reasonable policy.
>> >> >
>> >> >Maybe for Java, which requires that directory structure anyway.
>> >> >
>> >> >But for Ada, which has a good way to name files that indicates the
>> >> >package heirarchy, directories should be used for even higher level
>> >> >organization, like projects.
>> >> 
>> >> For a small or medium sized project one can indeed pack everything in
>> >> one directory. With hundreds of files it becomes rather difficult. 
>> >
>> >Why? I don't have a problem with 280 files on Windows 2000. What sorts
>> >of problems do you run into?
>> 
>> To find a file in that huge directory. 
>
>How does having multiple directories make that easier?

I know which directory should contain the file. And that directory is
relatively small.

>> Note also that a nested package of level 5 could have name like:
>> 
>>    fuzzy.graph.handle.learning.implementation.ads
>> 
>> It becomes a pain to navigate across this directory. It is difficult
>> for human eye to recognize a postfix of a long name. 
>
>Hmm. In emacs, I pull up the whole directory, then search in the
>buffer.
>
>But actually, to navigate Ada source, I don't tend to use file names;
>I use Ada names, and let Emacs figure out where the files are.

I see. You know, an ability to accept emacs is IMO sort of genetically
preprogrammed. (:-))

>> So one have to separate files in some way. One possible way is to
>> mimic the package tree. It is a reasonable way, but not the only
>> one.
>
>File names that mimic the package tree are better than directories
>that mimic the package tree, in my opinion. I haven't heard any solid
>evidence here to contradict that.

As a emacs user you should see little difference between:

    fuzzy-graph-handle-learning-implementation.ads

and

    fuzzy/graph/handle/learning/implementation.ads

after all one can substitute '/' for '-' in emacs.

Then, do not you feel that packing everything in one directory is
similar to packing all packages in one huge all_stuff.ada file? I mean
that if we accept the idea of mapping compilation units to files, we
should also, consequently, accept mapping of their parent-child
relations to the directory-file ones.

--
Regards,
Dmitry Kazakov
http://www.dmitry-kazakov.de




  reply	other threads:[~2003-12-04  9:16 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-27 15:42 Visibility problems with package instantiations Petter Fryklund
2003-11-27 16:33 ` Dmitry A. Kazakov
2003-11-28 11:23   ` Petter Fryklund
2003-11-28 13:17     ` Dmitry A. Kazakov
2003-12-01  7:45       ` Petter Fryklund
2003-12-01  8:58         ` Dmitry A. Kazakov
2003-12-01 16:31           ` Stephen Leake
2003-12-02  9:00             ` Dmitry A. Kazakov
2003-12-02 16:20               ` Stephen Leake
2003-12-03  8:37                 ` Dmitry A. Kazakov
2003-12-03 18:09                   ` Stephen Leake
2003-12-04  9:16                     ` Dmitry A. Kazakov [this message]
2003-12-04 13:09                       ` Stephen Leake
2003-12-04 14:03                         ` Dmitry A. Kazakov
2003-12-04 19:24                         ` Randy Brukardt
2003-12-05  0:30                           ` Stephen Leake
2003-12-05  2:58                             ` Randy Brukardt
2003-12-05 14:04                               ` Stephen Leake
2003-12-05 12:14                           ` Jeff C,
2003-12-05 13:13                             ` Arnaud Charlet
2003-12-05 20:52                               ` Randy Brukardt
2003-12-05 21:10                                 ` Simon Wright
2003-12-02 17:07               ` Jeffrey Carter
2003-12-03  8:49                 ` Dmitry A. Kazakov
2003-12-02  4:25         ` Randy Brukardt
replies disabled

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