comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Case dependence and coding standards
Date: Tue, 3 Jun 2003 18:37:58 -0500
Date: 2003-06-03T18:37:58-05:00	[thread overview]
Message-ID: <vdqc8jri3m6771@corp.supernews.com> (raw)
In-Reply-To: wccu1b7yod6.fsf@shell01.TheWorld.com

Robert A Duff wrote in message ...
>Vinzent Hoefler <ada.rocks@jlfencey.com> writes:
>> Well, I expect a compiler to *read* the source, not actually *write*
>> it.
>
>Sure, that's what we're all used to.  But we expect our editors and
>pretty-printers and CM systems and so forth to modify our source code.
>Why do we trust some programs over others to modify our code?


Immediate feedback in an IDE, as opposed to some batch process where the
changes (for good or evil) are hidden away.

I *don't* allow pretty-printers and CM systems to modify my code; my
experience is that they make it worse as often as they make it better.
(The inability to turn off Rational's pretty printer in their editor is
a great frustration to me.) I don't even think it is possible to write a
pretty printer that will do a good job in general; such programs can't
know when to line up declarations and when not to; when to leave
comments alone and when to reformat them; and so on. (And I've tried to
write one; you'll find it in Janus/Ada.)

So I certainly would not want or allow a compiler to modify my code. The
IDE can do such things (but it needs to be configurable in many ways,
and it has to allow writing whatever makes sense, even if it violates
some rule in the IDE's formatter).

            Randy.





  reply	other threads:[~2003-06-03 23:37 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-03  5:05 Case dependence and coding standards Fionn mac Cuimhaill
2003-06-03 17:31 ` Robert A Duff
2003-06-03 17:46   ` Vinzent Hoefler
2003-06-03 19:04     ` Robert A Duff
2003-06-03 23:37       ` Randy Brukardt [this message]
2003-06-04  2:39         ` Wesley Groleau
2003-06-04 13:28           ` Georg Bauhaus
2003-06-04 15:44             ` Preben Randhol
2003-06-04 22:32             ` Wesley Groleau
2003-06-05 12:01               ` Georg Bauhaus
2003-06-05 15:36                 ` Preben Randhol
2003-06-05 17:41                   ` Wesley Groleau
2003-06-05 17:47                     ` Preben Randhol
2003-06-05 17:51                       ` Preben Randhol
2003-06-05 18:32                 ` Wesley Groleau
2003-06-06  8:58                   ` Georg Bauhaus
2003-06-07  0:53                     ` Wesley Groleau
2003-06-10 15:05                       ` Georg Bauhaus
2003-06-05 17:32               ` Wesley Groleau
2003-06-05 17:43                 ` Preben Randhol
2003-06-04  8:39       ` Vinzent Hoefler
2003-06-04 16:32         ` Stephen Leake
2003-06-05  1:27           ` Robert I. Eachus
2003-06-05  7:47           ` Vinzent Hoefler
2003-06-05 17:47             ` Stephen Leake
2003-06-05 19:43               ` Wesley Groleau
2003-06-06  9:27               ` Georg Bauhaus
2003-06-06 10:29                 ` Preben Randhol
2003-06-03 19:38   ` Stephen Leake
  -- strict thread matches above, loose matches on Subject: below --
2003-06-04 17:00 Lionel.DRAGHI
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox