Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Apr 2002 13:20:29 -0800 (PST)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        Kenneth Culver <culverk@alpha.yumyumyum.org>
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:  <200204022120.g32LKTZ17685@apollo.backplane.com>
References:   <20020402154308.F46914-100000@alpha.yumyumyum.org>

next in thread | previous in thread | raw e-mail | index | archive | help

:...
:Well, I havn't been around since those days, but disk space is cheap now,
:so I'm not sure that whole file bloat b/c of spaces being used instead of
:..
:(This is with 8 char tabs on my emailer)
:
:	if(blah) {
:		ret = foo();
:...
:
:Basically, I think that code would be more readable with smaller tabs, so
:say I want to use 4 space tabs, I wouldn't have to keep continuing on the
:next line all the time. I know this is personal opinion, and personal

    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.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>
    
:Again, I know this is all personal opinion, but I think it's much more
:simple. :-)
:
: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?200204022120.g32LKTZ17685>