Tom Anderson <twic@urchin.earth.li> writes:
On Fri, 22 Oct 2010, markspace wrote:
On 10/21/2010 11:48 PM, BGB / cr88192 wrote:
apart from a few edge cases: the big ugly block of characters; the
ugly 1 or 2-space tab (luckily, this one has largely died off, as
the 4 or 8 space tab are near-universal);
In my experience, tabs died out a decade ago. All indentation is
with spaces now. I always favored tabs myself, but the world has
moved on. Que sera sera.
Seriously? We use nothing but where i work. In java and XML, at least
-
for some reason, in JSP (well, HTML, really) we tend use two spaces. I
think because JSP/HTML tends to have much more deeply nested
constructs.
I think our use of tabs must stem from the fact that Eclipse, by
default, uses tabs for indentation. They must have a reason to do that.
The trouble with tabs is that everyone has a different idea of what
the spacing should be, and they rarely bother to document it because
it's so obviously the one true way. This is manageable in a smallish
office environment but for distributed projects it turns into a
complete mess. I've seen source files where different sections assumed
different tab widths, so that no matter how you configured your editor
some parts of it would still look wrong.
number of tabs will line up, and that's what matters. Sometimes that
indentation might be more, sometimes less. How does that matter?