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,FREEMAIL_FROM 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,UTF8 Path: g2news2.google.com!news3.google.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!194.134.4.91.MISMATCH!news2.euro.net!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: AWS Coding Styles (and about boring plain-linear text files in the end) Date: Wed, 19 Jan 2011 10:28:19 +0100 Organization: Ada @ Home 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> NNTP-Posting-Host: aS7WY6CBCam1jvnqwM9+QQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/11.00 (Win32) Xref: g2news2.google.com comp.lang.ada:17520 Date: 2011-01-19T10:28:19+01:00 List-Id: Le Wed, 19 Jan 2011 10:13:34 +0100, Dmitry A. Kazakov = a =C3=A9crit: > On Wed, 19 Jan 2011 08:19:39 +0100, J-P. Rosen wrote: > >> I beg to (partially) disagree here: reading a newspaper has nothing t= o >> 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 =E2=80=9Cwords=E2=80=9D = as you agreed = later, you have indent also. >> 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 ;) > BTW, the argument to exactness works rather against you. Consider how = = > texts > on mathematics are formatted. Formulae have always *shorter* lines tha= n > 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. Seems reasonable. This could be confirmed by another common standard: one instruction per = = line only (and I personally also try to do it =E2=80=9Con expression per= line = only=E2=80=9D and use intermediate variable or constants for that purpos= e). 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 =3D= = semantic unit). The length in semes is more meaningful. What's the avera= ge = length in characters of a seme in a computer program source ? And what's= = the average indent width ? I feel we could agree we could go beyond 80 characters (seems OK). But 1= 20 = is too much. Well, let say 100 (cheese). -- = Si les chats miaulent et font autant de vocalises bizarres, c=E2=80=99es= t pas pour = les chiens. =E2=80=9CI am fluent in ASCII=E2=80=9D [Warren 2010]