Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site unisoft.UUCP
Path: utzoo!utcs!lsuc!pesnta!amd!dual!unisoft!fnf
From: fnf@unisoft.UUCP (Fred Fish)
Newsgroups: net.lang.c
Subject: Re: Quality programming in c -- a rarity?
Message-ID: <403@unisoft.UUCP>
Date: Mon, 11-Feb-85 23:02:54 EST
Article-I.D.: unisoft.403
Posted: Mon Feb 11 23:02:54 1985
Date-Received: Wed, 13-Feb-85 19:05:25 EST
References: <443@decwrl.UUCP> <4541@ucbvax.ARPA> <435@ucsfcgl.UUCP>, <664@voder.UUCP>
Organization: UniSoft Corp., Berkeley
Lines: 21

Gene Bloch writes:
> One problem though - my format is very readable to me, but I might not
> be able to read yours easily (and vice versa, of course).  As a result I
> don't want to maintain your code (again, vice versa too - and I am speaking
> generically as a rhetorical device)....

Good point Gene.  What would really help is a "trainable" C beautifier.
I would train it to my style by feeding it lots of my programs, run
yours through it, and presto ... now I have your code in my style.
When I'm done with it, you do the reverse and we're both happy.

And while we're at it, how about a "cdiff" program that compares
programs at the parse tree level so that comment changes, variable
renamings, etc get ignored.  Now I can make all sorts of improvements
(from my point of view :-) to your N line program without having
diff spit out 2N lines of changes.

Gee, I just gave away two good ideas for a commercial product ... argh!