home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / ada / 3856 < prev    next >
Encoding:
Text File  |  1993-01-03  |  2.5 KB  |  59 lines

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