Re: organizing deep source trees with child packages
- From: "Dmitry A. Kazakov" <mailbox@xxxxxxxxxxxxxxxxx>
- Date: Sun, 16 Oct 2011 15:43:03 +0200
On Sun, 16 Oct 2011 08:51:14 -0400, Stephen Leake wrote:
"Dmitry A. Kazakov" <mailbox@xxxxxxxxxxxxxxxxx> writes:
On Fri, 14 Oct 2011 00:25:15 +0200, Yannick Duchêne (Hibou57) wrote:
Le Thu, 13 Oct 2011 16:18:27 +0200, Ludovic Brenta
<ludovic@xxxxxxxxxxxxxxxxxx> a écrit:
Directories are *not* a solution for these problems. They do notThis is not a matter of semantic, this is a matter of being handy for
represent dependencies or hide any information from the compiler.
human beings.
Actually long file names is not the problem. The problem is that GPS in its
tree view control used for browsing the project units ignores the packages
hierarchy in favor of the hierarchy of the file system. Change that in GPS
(or another Ada IDE) and the problem would largely disappear.
I still don't understand what "problem" is being solved here.
Long file names, which are difficult to read.
GPS project view shows file names, e.g.:
gtk-layered-waveform-ring_data_buffer.adb
gtk-layered-waveform-ring_data_buffer.ads
It should rather show simple names of Ada units, e.g.:
gtk
|-layered
| |-waveform
| | |-ring_data_buffer
| | | |-package specification
| | | |-package body
A file system browser allows viewing files by file name; that's a good
solution for a class of problems. A package browser allows browsing
packages by package name; that's a good solution for another class of
problems.
If the file and package names are the same, then you can use a file
browser as a package browser, avoiding the work of maintaining two
tools.
When do file names and package names _need_ to be different?
Always. Actually this is what the OP wished to have: a correspondence
between fully qualified names of Ada units and paths of the files
containing these units. Parent's name <-> directory name. Child name <->
file name.
I don't see any problem with long file names; they used to be a problem
on 80 character terminals, but we are past that now.
For projects of many hundred files, it is a huge problem. Especially when
you have hundreds of generic package instances popping everywhere. Pushing
files into different directories makes things only worse. The point is,
when browsing a project you are not interested in files, you are looking
for Ada units, and it is absolutely irrelevant what is the file name of
that unit. In fact, if the source control systems were not so retarded, we
would have no files at all, just versions of units stored in a database.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
.
- Follow-Ups:
- Re: organizing deep source trees with child packages
- From: Stephen Leake
- Re: organizing deep source trees with child packages
- From: Simon Wright
- Re: organizing deep source trees with child packages
- From: Yannick Duchêne (Hibou57)
- Re: organizing deep source trees with child packages
- From: Shark8
- Re: organizing deep source trees with child packages
- References:
- organizing deep source trees with child packages
- From: Greg Moncreaff
- Re: organizing deep source trees with child packages
- From: Stephen Leake
- Re: organizing deep source trees with child packages
- From: Greg Moncreaff
- Re: organizing deep source trees with child packages
- From: Ludovic Brenta
- Re: organizing deep source trees with child packages
- From: Yannick Duchêne (Hibou57)
- Re: organizing deep source trees with child packages
- From: Dmitry A. Kazakov
- Re: organizing deep source trees with child packages
- From: Stephen Leake
- organizing deep source trees with child packages
- Prev by Date: Re: Length of unbounded_string.
- Next by Date: Re: organizing deep source trees with child packages
- Previous by thread: Re: organizing deep source trees with child packages
- Next by thread: Re: organizing deep source trees with child packages
- Index(es):
Relevant Pages
|