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: fac41,a48e5b99425d742a X-Google-Attributes: gidfac41,public X-Google-Thread: 1108a1,5da92b52f6784b63 X-Google-Attributes: gid1108a1,public X-Google-Thread: 103376,a48e5b99425d742a X-Google-Attributes: gid103376,public X-Google-Thread: ffc1e,a48e5b99425d742a X-Google-Attributes: gidffc1e,public X-Google-Thread: 107d55,a48e5b99425d742a X-Google-Attributes: gid107d55,public X-Google-Thread: f43e6,a48e5b99425d742a X-Google-Attributes: gidf43e6,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Papers on the Ariane-5 crash and Design by Contract Date: 1997/03/25 Message-ID: #1/1 X-Deja-AN: 228410254 References: <858728022snz@transcontech.co.uk> Organization: New York University Newsgroups: comp.lang.eiffel,comp.object,comp.software-eng,comp.programming.threads,comp.lang.ada,comp.lang.java.tech Date: 1997-03-25T00:00:00+00:00 List-Id: J Durchholz says <> Discrepancies between code and comments are bugs, often serious bugs. Pressure to meet a deadline should never result in the technial folks involved being willing to cut corners and deliver code with bugs. Usually the reason that comments get out of synch is programmers who don't give the correctness of comments sufficiently high priority! Note incidentally that executable assertions can ALSO get out of date, yes you may have a chance of testing revealing such a bug, and it is true that testing will never reveal a bug in a comment. However, relying on testing alone is always dangerous, so whatever techniques (other than testing) are used to ensure the correctness of code should also be applied to ensuring that comments are correct. It is this attitude that is critical in achieveing the admiteldly difficult goal of making sure that comments stay in sync (systematic reading of code is also very helpful :-)