home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.ada
- Path: sparky!uunet!gatech!asuvax!ennews!telesys!weyrich!orville
- From: orville%weyrich@uunet.uu.net (Orville R. Weyrich)
- Subject: Re: Ada Readability, Book Reference
- Message-ID: <1993Jan3.152831.16732@weyrich.UUCP>
- Sender: orville@weyrich.UUCP (Orville R. Weyrich)
- Reply-To: uunet.uu.net!weyrich!orville
- Organization: Weyrich Computer Consulting
- References: <9212281507.AA20416@ajpo.sei.cmu.edu>
- Date: Sun, 3 Jan 93 15:28:31 GMT
- Lines: 46
-
- In article <9212281507.AA20416@ajpo.sei.cmu.edu> SAHARBAUGH@ROO.FIT.EDU writes:
- >
- >So I ask "Is Ada readable if you can express an indeterminate
- >program using it?".
- >
- >sam harbaugh
- >---
-
- I am not sure whether there is a relationship between indeterminancy and
- readability.
-
- Suppose, for example, the indeterminancy arises because of a concession made
- to the implementors by way of not completely defining the effect of certain
- language constructs [i.e. "implementation-defined"]. Suppose then I were to
- arbitrarily define these aspects [very arbitrarily -- I'm being a devil's
- advocate here] to depend on the number of comments in the compilation unit.
-
- I have eliminated the indeterminancy, but certainly have not enhanced the
- readability.
-
- Or suppose, for another example, the indeterminancy arises because of a
- race condition that is outside the scope of control of the compiler and
- run-time system. The indeterminancy could perhaps be resolved by introducing
- semophores or some similar construct, but that would further complicate the
- program text.
-
- In my opinion, one of the best measure of readability is how well
- the semantics of a fragment of code can be determined in isolation from
- the context of the entire program. Another measure of readability is what
- I might call "stability" -- minor changes in the code should result in
- minor changes in semantics, not major changes. In other words, if a
- reader has a small misunderstanding of what he/she read, and that leads
- to a small misunderstanding of what the code does, the code is stable.
-
- Happy new year to all.
-
-
- orville
-
- -------------------------------------- ******************************
- Orville R. Weyrich, Jr. Weyrich Computer Consulting
- Certified Data Processor POB 5782, Scottsdale, AZ 85261
- Certified Systems Professional Voice: (602) 391-0821
- Internet: orville%weyrich@uunet.uu.net Fax: (602) 661-0660
- -------------------------------------- ******************************
-
-