4 ms·
Can I ask how old you are? I pose this question sincerely, as I'm over 40 and still prefer 2-space tabs myself.
by rkagerer 3y ago
Can I ask how old you are?
I pose this question sincerely, as I'm over 40 and still prefer 2-space tabs myself.
- adrian_b 3y agoI do not believe that anyone can argue that 4-space indented code is not easier to read than 2-space indented code, when that is the only difference in formatting between them. On the other hand, when the style rules also impose a very short maximum code line length, e.g. of 80 characters, then I agree that in such cases 2-space indenting is a superior choice, because the slight decrease in readability is compensated by a greater increase in readability due to a much less frequent need to break long lines. When I write for myself, I prefer 4-space indenting, but together with a greater maximum line length.
- rkagerer 3y agoIndeed, the reason I switched to 2 spaces decades ago is for density - to fit more on the screen at a time, particularly if there's lots of nesting (which is often the case in the code I read). BTW I haven't seen code that diligently sticks to 80-character lines since the days of dot matrix printers :-).