From: George Michaelson <ggm@algebras.org>
To: Larry McVoy <lm@mcvoy.com>
Cc: TUHS main list <tuhs@minnie.tuhs.org>
Subject: Re: [TUHS] tabs vs spaces - entab, detab
Date: Fri, 5 Mar 2021 11:09:16 +1000 [thread overview]
Message-ID: <CAKr6gn0QKzMaDMEY0uNLNOK5YugNvSZxJC_MLnLSntv60i+T6Q@mail.gmail.com> (raw)
In-Reply-To: <20210305005531.GA30608@mcvoy.com>
I use them incoherently, depending on context, time, and adherence to
something approximating to xNF for some X, normal-form. Other peoples
rules.
What I found interesting, is the divergence in strategy in managing.
strategy a: I shall show these as if they were 8 space indents. You
maybe can change this. Its columns on the screen.
strategy b: I shall, in a fit of lunacy, actually change these to
align to the 8 space indent column implications. your source is now
different
strategy c: You ran some tool like tr over these, and now, Its your
fault not mine. Good luck.
I usually wound up in strategy c but some editors of the day did
strategy b. I harbour a belief, this amongst other things, is why
patch -l was invented.
I know its heresy to contradict wiser people, but I think the number
of circumstances where space/tab actually did affect baud- or data-
rate was minimal. It was an effect more apparent and believed than
real. Sure, if you used an ASR33 the head positioning was better. That
experience set against being in a Vt52 or ADM5 world, by the time you
were in a vdu display of 80x24 I think it was gone. I never
consciously thought about it and I used both. It wasn't very material
for the circumstances but I wasn't trying to cram source into a 2k
memory to put into a rocket or a telephone switch or anything. It's a
bit like steam-engine enthusiasts arguing about boiler tube design:
most shunters don't care.
People mostly hated me mucking around with their code. I can't blame
them. It would be horrid to live in a really nicely laid out world in
either tab or space-land and have a hooligan come and scribble over
your art with a texta. Aside from simply coding bad answers to
problems, I do note that sending people who demanded KNF non-KNF
formatted code usually led to rapid rejection.
The US is a place where people still use fixed-width fonts and
specific spacing to file paper on the law courts, although I note
Sydney Powell didn't bother spell checking before she sent in the
incredibly weird conforming style of text. I should complain: the IETF
idnit checker is feral.
-G
On Fri, Mar 5, 2021 at 10:55 AM Larry McVoy <lm@mcvoy.com> wrote:
>
> On Thu, Mar 04, 2021 at 07:44:12PM -0500, John Cowan wrote:
> > On Thu, Mar 4, 2021 at 2:10 PM emanuel stiebler <emu@e-bbes.com> wrote:
> >
> > Does it help, if we differentiate with the type of text ?
> > >
> > > Assembler : Tabs = 8 spaces
> > > (c, c++, pascal, java, etc.) : tabs = 4 spaces
> > >
> >
> > The Lisp community long ago standardized on 2-space indentation.
>
> I used to be a 4 spaces are tabs guy but Sun beat that out of me.
> Tabs are tabs and they are for a reason, though that reason is pretty
> dead. The reason was pretty printing listings, anything but tabs got
> all screwed up. But it has probably been a decade or more since I've
> pretty printed anything, maybe two. Old habits...
>
> I developed my own use of 4 spaces, those are "continuation lines"
>
> if (some_stupidly_long_expression_that_goes_on_forever >=
> this_never_happens_but_it_does_happen_when_deeply_nested) {
> statement;
> statement2;
> etc;
> }
>
> But I'm weird, I hate
>
> if (expr)
> statement;
>
> I do
>
> if (expr) statement;
>
> Curly braces are for more than one statement or I do do
>
> if (expr) {
> statement;
> } else {
> statement2;
> }
>
> I also like perl so I do
>
> #define unless(x) if (!(x))
>
> because I think this reads better:
>
> FILE *f;
>
> unless (f = fopen(argv[1], "r")) {
> perror(argv[1]);
> exit(1);
> }
next prev parent reply other threads:[~2021-03-05 1:09 UTC|newest]
Thread overview: 78+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-04 16:52 Will Senn
2021-03-04 16:59 ` Clem Cole
2021-03-04 18:31 ` arnold
2021-03-04 19:23 ` Nemo Nusquam
2021-03-04 19:37 ` Steve Nickolas
2021-03-04 19:50 ` Rob Pike
2021-03-04 21:20 ` Robert Clausecker
2021-03-04 21:25 ` Will Senn
2021-03-05 9:58 ` John Gilmore
2021-03-06 21:31 ` Dave Horsfall
2021-03-06 21:38 ` Larry McVoy
2021-03-06 22:05 ` Clem Cole
2021-03-15 3:02 ` John Cowan
2021-03-15 18:15 ` Steffen Nurpmeso
2021-03-15 21:19 ` Bakul Shah
2021-03-15 23:47 ` Steffen Nurpmeso
2021-03-16 3:10 ` Earl Baugh
2021-03-15 21:08 ` Dave Horsfall
2021-03-15 21:12 ` Steve Nickolas
2021-03-15 21:24 ` Dave Horsfall
2021-03-15 22:06 ` Adam Thornton
2021-03-16 13:25 ` arnold
2021-03-17 5:10 ` Greg 'groggy' Lehey
2021-03-06 21:40 ` Steve Nickolas
2021-03-04 18:48 ` emanuel stiebler
2021-03-05 0:44 ` John Cowan
2021-03-05 0:55 ` Larry McVoy
2021-03-05 1:09 ` George Michaelson [this message]
2021-03-05 1:21 ` Larry McVoy
2021-03-05 1:29 ` Richard Salz
2021-03-04 18:33 ` John P. Linderman
2021-03-04 21:24 ` Greg 'groggy' Lehey
2021-03-04 21:27 ` Will Senn
2021-03-04 21:29 ` Greg 'groggy' Lehey
2021-03-04 21:42 ` Will Senn
2021-03-04 21:48 ` John P. Linderman
2021-03-04 22:08 ` Andy Kosela
2021-03-04 22:12 ` Greg 'groggy' Lehey
2021-03-05 14:13 ` Steffen Nurpmeso
2021-03-05 20:24 ` John Cowan
2021-03-05 21:51 ` Bakul Shah
2021-03-06 23:43 ` Steffen Nurpmeso
2021-03-05 0:15 ` Jon Steinhart
2021-03-06 21:22 ` Dave Horsfall
2021-03-06 23:58 ` Bakul Shah
2021-03-07 0:03 ` Jon Steinhart
2021-03-07 0:25 ` Steve Nickolas
2021-03-07 9:16 ` Brantley Coile
2021-03-05 9:50 ` [TUHS] tunefs -m 5% John Gilmore
2021-03-05 15:01 ` Grant Taylor via TUHS
2021-03-05 15:32 ` Theodore Ts'o
2021-03-06 1:18 ` Greg 'groggy' Lehey
2021-03-06 1:52 ` Warner Losh
2021-03-06 21:45 ` Dave Horsfall
2021-03-06 22:03 ` Larry McVoy
2021-03-09 4:59 ` Greg 'groggy' Lehey
2021-03-06 23:52 ` David Barto
2021-03-06 1:16 ` Greg 'groggy' Lehey
2021-03-04 22:10 ` [TUHS] tabs vs spaces - entab, detab Greg A. Woods
2021-03-05 1:41 ` alan
2021-03-05 1:55 ` alan
2021-03-05 2:06 ` Will Senn
2021-03-05 17:08 ` Clem Cole
2021-03-05 17:19 ` Richard Salz
2021-03-05 19:39 ` Lawrence Stewart
2021-03-05 19:51 ` Dan Halbert
2021-03-08 1:52 ` Will Senn
2021-03-05 16:43 ` Scot Jenkins via TUHS
2021-03-05 22:23 ` Bakul Shah
2021-03-06 20:51 ` Dave Horsfall
2021-03-06 21:01 ` Jon Steinhart
2021-03-06 21:19 ` Larry McVoy
2021-03-06 22:01 ` Clem Cole
2021-03-05 16:44 M Douglas McIlroy
2021-03-05 19:29 ` Greg A. Woods
2021-03-06 23:21 ` Steffen Nurpmeso
2021-03-05 22:50 Norman Wilson
2021-03-07 2:53 Nelson H. F. Beebe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKr6gn0QKzMaDMEY0uNLNOK5YugNvSZxJC_MLnLSntv60i+T6Q@mail.gmail.com \
--to=ggm@algebras.org \
--cc=lm@mcvoy.com \
--cc=tuhs@minnie.tuhs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).