comp.lang.ada
 help / color / mirror / Atom feed
From: "Peter C. Chapin" <pcc482719@gmail.com>
Subject: Re: Ada documentation tools.
Date: Mon, 15 Nov 2010 18:33:19 -0500
Date: 2010-11-15T18:33:19-05:00	[thread overview]
Message-ID: <sZqdnewQpeDSXnzRRVn_vwA@giganews.com> (raw)
In-Reply-To: <45458390-1074-4299-8faf-624bfda6db51@p7g2000prb.googlegroups.com>

On 2010-11-15 07:38, AdaMagica wrote:

> Cross-referencing can best be done via the internal program
> representation (ASIS e.g.). Why is a browser to be preferred to an IDE
> like GPS?

It works better on web pages. Documentation in HTML format can be
presented on the web for reference or whatever. It could probably also
be converted into, for example, CHM format (not sure... haven't actually
tried it).

Doxygen can extract information from the source (not just comments, but
also semantic information from the code itself) and format it as RTF or
even LaTeX. There are situations where that is nice.

Actually another advantage of using such tools is that it "forces"
developers to use a standardized commenting style. For example if I have
to use a @param tag, or something similar, to introduce the
documentation for a parameter then I know that everyone on the project
will be introducing parameter documentation the same way. That's a nice
thing too. Comments are free formatted, which can be good at times, but
there are also times when I'd like to impose structure on them.

Speaking of Doxygen... one thing that I rather like about it is that it
allows you to include comments on either the declaration or the
definition of a function. The Ada tools I've seen so far believe that
all "documentation" comments should appear in the specification. I agree
that is logically where they should go but from a maintenance point of
view it can be nice to have the documentation for a subprogram right
where one spends time editing that subprogram. I understand this invites
confusion between documentation for users vs documentation for
implementers. Still, it's a nice option to have when used with caution.

> Would you try to
> browse through a HOOD design or UML model created with some tool with
> a browser instead of a dedicated tool?

I could imagine wanting to do that, yes.

Peter



  reply	other threads:[~2010-11-15 23:33 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-14 22:26 Ada documentation tools Peter C. Chapin
2010-11-15  8:14 ` AdaMagica
2010-11-15  9:49   ` Maciej Sobczak
2010-11-15 12:29     ` AdaMagica
2010-11-15 13:06       ` Maciej Sobczak
2010-11-15 14:25         ` AdaMagica
2010-11-15 14:56           ` Georg Bauhaus
2010-11-17 23:06             ` Yannick Duchêne (Hibou57)
2010-11-15  9:52   ` Georg Bauhaus
2010-11-15 11:40   ` Peter C. Chapin
2010-11-15 12:38     ` AdaMagica
2010-11-15 23:33       ` Peter C. Chapin [this message]
2010-12-20 13:02         ` Marco
2010-11-16  1:02       ` Marc A. Criley
2010-11-15 12:56     ` Niklas Holsti
2010-11-15 23:19       ` Peter C. Chapin
2010-11-15  9:47 ` Maciej Sobczak
replies disabled

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