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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7dd9b82cd363f55b X-Google-Attributes: gid103376,public From: "W. Wesley Groleau (Wes)" Subject: Re: Coding Standards Date: 1996/05/17 Message-ID: <9605171955.AA11601@most>#1/1 X-Deja-AN: 155343597 sender: Ada programming language comments: Gated by NETNEWS@AUVM.AMERICAN.EDU mailer: Elm [revision: 70.85] newsgroups: comp.lang.ada Date: 1996-05-17T00:00:00+00:00 List-Id: After I said: >> Indeed, if you can't understand or maintain the code without the standard, >> then the coding standard is not making the code more maintainable, is it? R.D. answered: > By the same argument, why should programmers have to read the Ada > manual? After all, if you can't understand or maintain the code without > the Standard, then the language standard is not making the code more > readable. For example, if you don't understand the type checking rules, > then type checking won't help you understand the program. ;-) > > I can assure you that if you work on a project where I'm the boss, and > it's written in Ada, you will be required to know Ada, and to know > project-wide conventions about Ada, and so on. I think you're reading too much into my comment. I was not criticizing your initialization convention (I'm still undecided on that). Nor did I suggest that programmers be allowed to shrug off coding standards. (People that have worked with me know I can be a bit of a curmudgeon about format and style.) But the main point of coding standards is maintainability via readability. I believe that the code should be as clear as possible to the READER without external support. There is a difference between a feature of the language that supports reliability in general and a local convention that adds semantics to the code. Readability was one of the original goals of Ada. If we really wanted to make sure that people used the standards and references extensively, we could have derived Ada from RPG, APL, and C rather than Algol and Pascal. :-) I want the customer, outside consultants, future maintainers, etc.--who may not be able to find (or who may not be obligated to) a coding standard that may no longer be valid--to understand the code. Now if they are going to change it, yes, I will vigorously defend the current coding standards of the project. --------------------------------------------------------------------------- W. Wesley Groleau (Wes) Office: 219-429-4923 Senior Software Engineer - AFATDS FAX: 219-429-5194 Magnavox - Mail Stop 10-40 Home: 219-471-7206 1010 Production Road QuickMail (Mac): wwgrol@most.fw.hac.com Fort Wayne, IN 46808 elm (Unix): wwgrol@pseserv3.fw.hac.com ---------------------------------------------------------------------------