While you are starting in on the new code version, would you *please*
remind your developers that manually spacing the code indentation is *NOT*
polite in open-source projects?

By always using tabs for indentation, you allow the developer/maintainer to
set their tab width to their own preferences and work easily in that
fashion. When they save their changes, another developer can see the
changes in whatever indentation setting they prefer.

The current code basis renders this impossible, where the code mixes
tab-based indentation with space-based indentation. The code is only
readable when tabs are set to 8-chars wide. This is mongo impolite, and
insensitive to everyone who has to work on multiple projects during the day.

Current code:
[s][s][s][s]if (blah) {
[tab]dothis();
[s][s][s][s]}

Polite version - easy to render as anyone sees fit:
[tab]if (blah) {
[tab][tab]dothis();
[tab]}

I believe that if your programmers set their tab width to "4" and switch to
this style they'll see the code in the same indentation as they do now.
This permits other programmers to switch their tab width and see it laid
out as they like. As a side benefit the files are also smaller, and CVS has 
an easier time merging differences.
 
-- 
Joe Rhett                                         Chief Technology Officer
[EMAIL PROTECTED]                                      ISite Services, Inc.

PGP keys and contact information:          http://www.noc.isite.net/Staff/

Reply via email to