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,6bee08c26af9486d X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!eweka.nl!lightspeed.eweka.nl!195.114.231.69.MISMATCH!feeder.news-service.com!feeder.news-service.com!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Learning Ada but missing the basics? Date: Thu, 03 Jul 2008 10:09:56 +0200 Message-ID: <6d3fq7Fk0g0U1@mid.individual.net> References: <85e95c57-07c3-42eb-b9b9-eac5fd3d0d65@i76g2000hsf.googlegroups.com> <319201bf-2ac0-4a36-a713-ca1db0326541@d45g2000hsc.googlegroups.com> <486B47F8.80704@obry.net> <6d1mm5Fd2k6U1@mid.individual.net> <486bb846$0$6554$9b4e6d93@newsspool3.arcor-online.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: individual.net Io6JHC4/qe0Vky6l1QQm+wp/sVCU0W32wjwLZLX0ivTtXWCj4= Cancel-Lock: sha1:QPcElMZkVJ+6BNDVPUzSV8IjE9U= User-Agent: KNode/0.10.9 Xref: g2news1.google.com comp.lang.ada:989 Date: 2008-07-03T10:09:56+02:00 List-Id: Georg Bauhaus wrote: > Alex R. Mosteo wrote: >> Pascal Obry wrote: > >>> You'll see that on those projects the code quality and style is uniform >>> in all the sources. This makes a project easier to maintain by a group >>> of people. No one own (by using weird style for example where other >>> developers do not feel comfortable) a part of the code. This to say that >>> there is no ONE good style but most importantly a style must be >>> followed, uniformity is more important to me. >> >> In this regard, gnat style switches are truly useful. I find I've added >> quite a few over time to my defaults. > > Which ones of the GNAT style switches do you think have greater > influence on your programs' stability and design? The ones > that criticize typographic qualities, or those that comment > on the qualities of the non-white code? I couldn't point to a precise effect, but I like the overall result. In one hand, nice whitespacing goes a long way into readability. I know people that dismiss certain kinds of whitespace/comments on the basis that a good editor highlights what's important, but I'm not totally in this camp. I have also an itching for the little (many times not useful) details which borders in obsessiveness, so consistent capitalization (on the fly by the editor and then checked) saves me a lot of uneasiness and time. Admittedly, this is a personal problem. It will not come as a surprise that I like gnatpp a lot.