Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Apr 2002 16:38:30 -0500 (EST)
From:      Kenneth Culver <culverk@alpha.yumyumyum.org>
To:        Matthew Dillon <dillon@apollo.backplane.com>
Cc:        Mike Barcroft <mike@FreeBSD.ORG>, "M. Warner Losh" <imp@village.org>, <jake@locore.ca>, <cvs-committers@FreeBSD.ORG>, <cvs-all@FreeBSD.ORG>
Subject:   Re: cvs commit: src/sys/i386/i386 critical.c src/sys/i386/include cpufunc.h critical.h src/sys/i386/isa apic_vector.s icu_vector.s src/sys/kern kern_fork.c kern_proc.c kern_switch.c src/sys/alpha/alph
Message-ID:  <20020402163309.J47850-100000@alpha.yumyumyum.org>
In-Reply-To: <200204022120.g32LKTZ17685@apollo.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>     I think you are missing the point here.   There is no law that requires
>     you to use the same indentation in your source as your hard tabs.  People
>     using an indentation of 4 almost universally use hard tabs of 8,
>     for example.  But if you change your tab stops, the text/source you
>     are writing is only going to look correct in your editor session, not
>     in anyone else's and it certainly will not print properly without
>     some fooling around.
>
>     That's why most people no longer try to change their hard tabs to
>     be anything other then 8.
>
> :coding style, but if I use spaces, every engineer/programmer that looks at
> :my code will see the code the way I originally wrote it. I don't care if
> :it takes extra space because I have 30 GB of disk space (or 10, or 5,
> :either way it doesn't really matter that much anymore because disk space
> :is cheap).
>
>     This is rather silly, I think.  Hard tabs of 8 are the standard.  If
>     you use anything else then you deserve whatever editing/viewing/printing
>     mess you get IMHO.  The world is unlikely to change in this regard
>     so you pretty much have no choice if you want to work in a larger
>     development community.  Believe me, developers get really unhappy
>     when they see people distributing code that requires hard tabs to
>     be changed.  You could ship all your source using spaces, but it
>     doesn't help you on the receiving end of things.
>
>     I remember when I wrote an editor called DME for the Amiga.  Even
>     back then I was so sick and tired of people doing weird things with
>     tabs that I made DME normalize everything to tabs of 8 when saving
>     and loading text files.
>
I also fully agree that tabstops should be set to 8, but my point is that
not everyone does that, as I've seen code with comments like this:

/* This code should be viewed with tabstops of x */

I find this extremely annoying, and so I write my code with spaces, that
way no matter what some other programmer sets his tabstops to, he/she will
see my code the way I wrote it. Thats all I'm saying, I got your point and
was just making another one. Whether it's valid or not is another story.
:-)

Ken


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020402163309.J47850-100000>