Complete.Org: Mailing Lists: Archives: freeciv-dev: June 1999:
Re: [Freeciv-Dev] Coding styles (not cranky mode)
Home

Re: [Freeciv-Dev] Coding styles (not cranky mode)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv List <freeciv-dev@xxxxxxxxxxx>
Subject: Re: [Freeciv-Dev] Coding styles (not cranky mode)
From: Peter Schaefer <schaefer@xxxxxx>
Date: Fri, 04 Jun 1999 16:07:36 +0200

Mark Nettle wrote:
> 
> I'm a great fan of using tab's to indent. Then (at risk of starting an
> vi vs emacs vs ? war)
> 
> $ cat ~/.exrc
> :set sw=4
> :set ts=4
> :set ai
> $
> 
>         Mark


I believe tabulators should be forbidden in source code. 
Generally and everywhere in the (programming) world.
There is nothing like seeing code that was indented with tab width 2
with your default width of, say, 8.
Also, there doesn't seem to be a big tradition of putting comments at
the head of ones code setting the tabulator width.

Means that for example cvs could expand tabulators to 8 spaces
(maybe it does that already?).
But people programming python probably think differently :-) 

But if there is a 'freeciv-coding style' defined, it sure would be useful
if people contributed configs/scripts like the one above for their 
favorite editors( "M-x c-freeciv-mode" ).

-- 
Peter Schaefer - schaefer@xxxxxx, schaefer@xxxxxx
"FermaT, by Software Migrations Ltd, is an industrial strength program
transformation system used to migrate IBM 370 Assembler modules into 
equivalent readable and maintainable COBOL programs, and to help solve 
the year 2000 challenge for IBM 370 Assembler code."

[Prev in Thread] Current Thread [Next in Thread]