One thing that should be noted in this thread is that different
people will have different priorities. For example, some solutions
work better with small fonts, but I can't use small fonts. (Among other
vision problems I have monocular diplopia, believe it or not.)
This is one reason I prefer True Style, which conserves vertical space.
Different style decisions interact. I tend to use ridiculously short
variable names. If I used ridiculously long variable names, I'd surely
end up preferring shorter indentation than I use now.
(Also, since I became an algorithm designer, rather than software
provider,
*my* code isn't usually a deliverable, except in finished form.
Hence catering to external style requirements is no longer a
requirement
for me.)
Richard said:
James Dow Allen said:
... Tabs being frowned
upon, I got into the 2-space indent habit for Usenet posts
I post code too, sometimes, but if more than a tiny fragment it's
usually from real code. I replace the tabs, easily, at the same time
I add the control-M's.
I have no problem matching braces (because I lay them out Allman-style, so
it's very obvious) - and anyway, vim can jump between { and } with a single
keystroke, so even if it weren't obvious it wouldn't matter that much.
Even old-fashioned vi does that, but I only do when the matching brace
is off-screen or I'm troubleshooting a missing-brace error. I like to
just
stare at code and quickly grasp it.
Andrew said:
Am I the only one who ever nests blocks more than two levels deep?
...
Running anything inside of the third loop would take 8 spaces with
2-space indentation, while it would take 32 spaces with your tabbing
You haven't looked at my code samples if you think I don't nest deeply.
I have various workarounds. As one example consider the idiom
for (Foo1; Foo2; Foo2)
if (Foo3)
enchant();
which seems to come up a lot, with *nothing* done in the loop unless
Foo3.
I often omit the indentation in this case, just as in the 2-D for shown
earlier.
I also often break up complex expressions into multiple lines, which
aids
readability even when the line wouldn't have become over-long.
strategy (not to mention the fact that will these new GUI's people
are using, tab may or may not switch you from your editor window).
GUI's?? Naaah.
James Dow Allen