3 ms·
An 80 character line limit almost mandates use of a 2 space indent, for most languages. Personally I prefer a line limit closer to 100, and 4 space indents in
by barrkel 13y ago
An 80 character line limit almost mandates use of a 2 space indent, for most languages.
Personally I prefer a line limit closer to 100, and 4 space indents in most languages. Some languages end up with a lot more indenting than others owing to structural literals and lambdas, and they benefit more from a smaller indent.
- dredmorbius 13y agoI manage 80 chars (with very few exceptions) and a 4-space indent. Copious use of bash functions helps.
- abecedarius 13y agoI'm happy with 80 columns and 4 spaces in C, Python, etc. Don't see the mandate. 2 spaces would make reading harder.
- nfoz 13y agoI was surprised how quickly I got used to it. Occasionally I have to trace blocks but not very often, and the tradeoff feels wonderful (it's much more rare that I catch myself re-formatting things to avoid the 80char limit).