comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Bug rate and choice of programming language
Date: Wed, 11 Aug 2010 06:36:14 +0100
Date: 2010-08-11T06:36:14+01:00	[thread overview]
Message-ID: <m2eie5zp69.fsf@pushface.org> (raw)
In-Reply-To: op.vg8y581rxmjfy8@garhos

"Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr> writes:

> Le Tue, 10 Aug 2010 22:53:25 +0200, Phil Thornley
> <phil.jpthornley@gmail.com> a écrit:
>> http://www.stsc.hill.af.mil/crosstalk/2003/11/0311german.html
>
> Another quote from the source
>
>> Control flow analysis can be conducted using tools or done manually at
>> various levels of abstraction (module, node, etc.) and is done for the
>> following reasons:* Ensure the code is executed in the right sequence.
>> * Ensure the code is well structured.
>> * Locate any syntactically unreachable code.
>> * Highlight the parts of the code (e.g., loops) where termination
>>   needs to be considered.
>> This may result in diagrammatic and graphical representations of the
>> code being produced.
>
> I feel the last sentence (previous text was quoted for context), may
> be a good reason to mitigate some (bad) evaluation of UML or UML- like
> representations. It seems their experience shows some graphical
> representation at some level may help. This does not really advocate
> for UML, rather for some kind of multi-dimensional representations,
> like graphical representations are.

What you would get from this is a representation of the code.

UML is not a good match for full Ada (not sure it's that good a match
for Java, come to that; mainly because it's a hotchpotch of
techniques without a huge amount of semantic precision).

What can be done is to specify a 'profile', ie tie down a subset of UML
and add extensions to give UML constructs a more precise meaning; and
then you can specify a translation from thence to the language of your
choice. I should add that I'm coming from a Shlaer-Mellor OOA background
(http://en.wikipedia.org/wiki/Shlaer-Mellor).

What this approach won't do is to support round-trip development (change
the model, generate code, change the code, automatically import the
changes back into the model), because the generation process chooses
appropriate templates based on model structure and annotations, and
these are necessarily a particular subset of full Ada.




  parent reply	other threads:[~2010-08-11  5:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-10 13:22 Bug rate and choice of programming language Maciej Sobczak
2010-08-10 14:41 ` Georg Bauhaus
2010-08-10 14:45 ` Yannick Duchêne (Hibou57)
2010-08-10 20:53 ` Phil Thornley
2010-08-10 22:23   ` Yannick Duchêne (Hibou57)
2010-08-11  0:04   ` Yannick Duchêne (Hibou57)
2010-08-11  0:19   ` Yannick Duchêne (Hibou57)
2010-08-11  0:40     ` Shark8
2010-08-16 17:52       ` Yannick Duchêne (Hibou57)
2010-08-11  5:36     ` Simon Wright [this message]
2010-08-16 17:48       ` Yannick Duchêne (Hibou57)
2010-08-11  7:50 ` Charles H. Sampson
replies disabled

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