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.2 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, FROM_STARTS_WITH_NUMS autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b3a2e095fecd381e X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Vinzent Hoefler" <0439279208b62c95f1880bf0f8776eeb@t-domaingrabbing.de> Newsgroups: comp.lang.ada Subject: Re: About style Date: Sat, 05 Mar 2011 10:53:46 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Trace: individual.net WPCNkuXBlnFBqnvBtY+TZwAUQMsNSS0nq3vEqzvPG/7DXiBfLR Cancel-Lock: sha1:eHsva4Ute3xNUDmr3cjH68IvOYE= User-Agent: Opera Mail/11.01 (Win32) Xref: g2news1.google.com comp.lang.ada:17885 Date: 2011-03-05T10:53:46+01:00 List-Id: Yannick Duch=C3=AAne (Hibou57) wrote: > An quote from the JLint distribution, which is README says (JSlint is = for > JavaScript, but the quote applies well to Ada I feel) : > >> The place to express yourself in programming is in the quality of you= r >> ideas, >> and the efficiency of execution. The role of style is the same as in >> literature. A great writer doesn't express himself by putting the spa= ces >> before his commas instead of after, or by putting extra spaces inside= his >> parentheses. A great writer will slavishly conform to some rules of >> style, >> and that in no way constrains his power to express himself creatively= . >> See for example William Strunk's The Elements of Style >> [http://www.crockford.com/wrrrld/style.html]. > > That said, I still know how it's difficult to try to define an Ada > Standard Style which would please everyone. True, yet I like the quote, because I always liked the idea that program= text should read just like any book. And that doesn't include violating typographical conventions just for the sake of violating them. That said, one of my colleagues likes to align semicolons at the end of declaration, this then looks like that: |A : Integer ; |B : Float ; |C : A_Very_Long_Type_Name ; Almost makes my cry each time I see it, yet there's nothing in our coding standard that forbids it. I sure looked. :) Vinzent. -- = A C program is like a fast dance on a newly waxed dance floor by people = carrying razors. -- Waldi Ravens