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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED.56I5FT3mBptsNOMb0aL7ug.user.gioia.aioe.org!not-for-mail From: russ lyttle Newsgroups: comp.lang.ada Subject: Re: Ada in command / control systems Date: Sat, 9 Mar 2019 13:47:59 -0500 Organization: Aioe.org NNTP Server Message-ID: References: <2199b15b-d704-403f-a6c4-00fab29792d5@googlegroups.com> <72738cc8-3f65-4cc1-8c61-b1166cb5e3c2@googlegroups.com> <9807ec3a-4c34-4641-acfa-e9cf22de95ce@googlegroups.com> <520809e3-a705-4b10-8b54-6d67c33158a6@googlegroups.com> NNTP-Posting-Host: 56I5FT3mBptsNOMb0aL7ug.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader01.eternal-september.org comp.lang.ada:55823 Date: 2019-03-09T13:47:59-05:00 List-Id: On 3/9/19 3:59 AM, Dmitry A. Kazakov wrote: > On 2019-03-09 09:16, Simon Wright wrote: >> russ lyttle writes: >> >>> Which brings up a recurring debate. If there is a conflict between two >>> diagrams, which takes precedence? >> >> Neither, in my view (as a purist): there's a contradiction which needs >> to be resolved. > > A more interesting question is how do you detect if there is any? > > Usually things flow in one direction, from diagrams down to the code. > This is why people attempt to promote diagrams to requirements. Because > otherwise you have comebacks, like: > > 1. Find all diagrams related to procedure Foo? > > 2. If specification of parameters Foo change, what changes on the > diagram A45-34E? > > Now, as a purist, you must say, OK, if something felt wrong in Foo, I > ditch all the code, modify diagrams I suspect responsible for the mess > and then write the code all new... > Write some checks and repeat as needed. I find diagrams very helpful, but only as a visualization aid. Not as a deliverable in the contract. And the last diagram is developed from the code.