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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fc52c633190162e0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news1.google.com!news.germany.com!newsfeed2.scan-plus.net!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Use of declare blocks From: Georg Bauhaus In-Reply-To: References: <1172144043.746296.44680@m58g2000cwm.googlegroups.com> <1172161751.573558.24140@h3g2000cwc.googlegroups.com> <546qkhF1tr7dtU1@mid.individual.net> <5ZULh.48$YL5.40@newssvr29.news.prodigy.net> <4eeMh.16400$bb1.2557@newssvr17.news.prodigy.net> <%CIMh.1791$rj1.394@newssvr23.news.prodigy.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Organization: # Message-Id: <1174645259.9435.22.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Date: Fri, 23 Mar 2007 11:20:59 +0100 NNTP-Posting-Date: 23 Mar 2007 11:19:49 CET NNTP-Posting-Host: a578538d.newsspool1.arcor-online.net X-Trace: DXC=4OaGfgXk?EB6PJ?[X6JIXEic==]BZ:afN4Fo<]lROoRAFl8W>\BH3YBTf^4jln3KOKA:ho7QcPOVC^7?U5Kk5SK@UOnCkWR?:PM X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:14605 Date: 2007-03-23T11:19:49+01:00 List-Id: On Fri, 2007-03-23 at 00:15 -0500, Randy Brukardt wrote: > wrote in message > > In your case, you and the small number of programmers who work > > with you are intimately familiar with the code. >=20 > That's no excuse for using a bad organization. I know how hard it is to g= o > back to code you haven't touched in a couple of years. It doesn't matter = if > you wrote it originally: you won't remember much about it. In this situation I have started pushing and forcing myself to write one line of comment above each meaningful group of statements, even when their meaning seemed obvious to me. In particular, when their meaning seemed obvious. As you say, it won't stay obvious, and the programmer's knowledge at the time of writing is lost with the missing comment and has to be regained. "What's next" style comments provide the problem and solution context necessary for better understanding the LOC made for solving the problem. This context information is much harder to extract from the context that the program text might provide by following formal implication chains. I wish we could again have a language (not tool) whose definition honestly adds the requirement that there be an utterance of the programmer about the intent of his lines. It might be a cultural change well worth it, in any sense of the word. Algol 60 impressed me with its =C2=ABcomment=C2=BB symbol, and a rule where to place it: after a =C2=ABbegin=C2=BB symbol.