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,429176cb92b1b825 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: AWS Coding Styles (and about boring plain-linear text files in the end) Date: Wed, 19 Jan 2011 14:39:11 +0100 Organization: Adalog Message-ID: References: <3077fffa-eed7-4763-8bca-9ac3bb0a41e1@o14g2000prn.googlegroups.com> <82y66ihc0i.fsf@stephe-leake.org> <4d355532$0$6878$9b4e6d93@newsspool2.arcor-online.net> <8b58b9da-a014-4a0e-8d20-ca86a4993961@h17g2000pre.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 19 Jan 2011 13:39:22 +0000 (UTC) Injection-Info: mx01.eternal-september.org; posting-host="vslmL83UgSXHD8TS0/yPxA"; logging-data="3777"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX196VTZO/nwxKl588V9m5lEo" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 In-Reply-To: Cancel-Lock: sha1:Kfka7sYMxHMdtmO3b2pHn2ti16Q= Xref: g2news1.google.com comp.lang.ada:16563 Date: 2011-01-19T14:39:11+01:00 List-Id: Le 19/01/2011 10:13, Dmitry A. Kazakov a �crit : >> And you want to read >> exactly what's written, not what your brain thinks is written! > > Without brain thinking, you mean? (:-)) > I noticed the smiley, but kidding apart, I think it is very important to realize that you don't read what is written, but what you think is written. How many times do you chase bugs that eventually resolved to modifying the wrong variable, and you read that damn assignment ten times before realizing it was the wrong variable ?! > BTW, the argument to exactness works rather against you. Consider how texts > on mathematics are formatted. Formulae have always *shorter* lines than > plain texts, to be read "exactly." Hmmm... when you start having names that do not fit on one line, you really have a readability problem. > >> I agree that /some/limitation is necessary, but 80 is far to narrow, >> leading to excessive folding in nested constructs. > > I disagree. The text should be possible to show side-by-side, e.g. ads and > adb files. I don't see why (see my other post) > Deeply nested constructs is IMO bad style, to be factored out > into local procedures. > Of course, but if you consider named notation in subprogram calls (good programming practice certainly), where you want all arrows aligned (good presentation too), and a parameter is itself a function call, and you have some explicit long names, you end up quite easily close to the right margin. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Adalog a d�m�nag� / Adalog has moved: 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00