🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #1049

Re: Catch Source Code Errors - Tricks Wanted

#1049
From: John Tamplin
Date: Wed, 17 Oct 1990 18:34
25 lines
1630 bytes
This is sortof off the subject, but one problem I have always had when
working on team projects was differences in coding style.  Typically each
person wrote in their own style, so you wound up with a mess of different
styles which really makes the code hard to read.  Sometimes, people would
reformat bits of code (usually fixes applied by someone else) to their own
style, something that especially trashes RCS-type programs, since there are
a lot of changes to lines in the program that aren't changes as far as the
compiler is concerned.

A tool I have always wanted to build, but have never had (made) time for is
this:  a version of RCS which canonicalizes (is that a word?) the source as
it is checked in.  When a user checks out a ocpy of the file, the program
checks an environment variable or some ~/.xxx file to discover the user's style
preferences.  That way, each person can inspect code in their favorite style,
without impacting any other team members' ability to do the same.  The file
could be stored as a normal program, or the version control system might
choose to store it in some kind of tokenized form to ease reassembly into
different styles.

Maybe one of these days I will actually write it.

-- 
John Tamplin						Xavax
jat@xavax.COM						2104 West Ferry Way
...!uunet!xavax!jat					Huntsville, AL 35801
Technical Details
Message-ID: <1990Oct17.183455.12233@xavax.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!xavax!jat

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!xavax!jat
From: jat@xavax.com (John Tamplin)
Newsgroups: comp.unix.programmer
Subject: Re: Catch Source Code Errors - Tricks Wanted
Message-ID: <1990Oct17.183455.12233@xavax.com>
Date: 17 Oct 90 18:34:55 GMT
Organization: Xavax
Lines: 25