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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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,UTF8 Path: g2news2.google.com!news4.google.com!feeder.news-service.com!2a02:590:1:1::196.MISMATCH!news.teledata-fn.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: AWS Coding Styles (and about boring plain-linear text files in the end) Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH 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> Date: Wed, 19 Jan 2011 11:04:42 +0100 Message-ID: NNTP-Posting-Date: 19 Jan 2011 11:04:42 CET NNTP-Posting-Host: d80df04a.newsspool3.arcor-online.net X-Trace: DXC=O>l`BkZi]NZYQ5E:lT\^nE^;mY[6LHn;2LCV^7enW;^6ZC`T\`mfM[68DCSSYg;So]oZCQ X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:17521 Date: 2011-01-19T11:04:42+01:00 List-Id: On Wed, 19 Jan 2011 10:28:19 +0100, Yannick Duchêne (Hibou57) wrote: > Le Wed, 19 Jan 2011 10:13:34 +0100, Dmitry A. Kazakov > a écrit: > >> On Wed, 19 Jan 2011 08:19:39 +0100, J-P. Rosen wrote: >> >>> I beg to (partially) disagree here: reading a newspaper has nothing to >>> do with reading a program. >> >> Of course it does, because the process of reading is same. > But the layout is not the same: you have longer “words” as you agreed > later, you have indent also. That does not change the process of reading, which is a chemical reaction in human body. The length of words may make this process slower or shorter, less or more effective, but it cannot change the process. >>> In programming, most identifiers are far longer than five characters, >>> especially if you are use-phobic (hint, hint). >> >> Right, yet another argument for "use" against fully qualified names. > These phobic people who like qualified names, also like renaming > declarations to provide shorter prefix, you know ;) I know, they have an impression that ATIO.Put_Line is more readable than just Put_Line. Of course the same package must be renamed to different names in different parts of the program in order to further "improve" "readability." (:-)) >> 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." > Reformulated: you suggest the more you have to care to each single part, > to shorter the line should be. There is some optimal length, which could be directly derived from the sight angle and the distance to the rendering surface. This is biologically given. > This could be confirmed by another common standard: one instruction per > line only (and I personally also try to do it “on expression per line > only” and use intermediate variable or constants for that purpose). Yes, a good pick. Into the same basket: one variable declaration per line. > May be we should distinguish two kind of line length: the one which is > measured in characters, and the one which is measured in semes ? (seme = > semantic unit). The length in semes is more meaningful. There are differences in how chains of characters and chains of symbols are recognized. Meaningful words are far easier to read. While reading known words people actually read only prefixes and suffixes. The brain automatically fills the gaps. Properly spelt words can be much longer than arbitrary chains of symbols. BTW, this why graphical languages will never make it, because written texts have the advantage of 10+ years of training on perpetual daily reading, while arrows and blocks do not. > What's the average > length in characters of a seme in a computer program source ? And what's > the average indent width ? Indentation is a "semantic unit" in your classification. > I feel we could agree we could go beyond 80 characters (seems OK). But 120 > is too much. Well, let say 100 (cheese). I stick to my 72. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de