3 ms·
Some things I don't particularly care for (2 space indent? SRSLY?!!), but it warms the cockles of my heart to see an 80 character line limit. Yes, it matters.
by dredmorbius 13y ago
Some things I don't particularly care for (2 space indent? SRSLY?!!), but it warms the cockles of my heart to see an 80 character line limit.
Yes, it matters.
- fhd2 13y agoYeah, Google has 80 column limits for almost every language (except for Java, it's pretty difficult there). So does Mozilla and all major open source projects I can think of (again, Java being the exception). It really does a lot for readability. I recently summed up my reasons for doing it in all of my projects: http://ubercode.de/blog/80-columns http://ubercode.de/blog/80-columns
- dredmorbius 13y agoThe argument-ender for me is: Look, when I'm at the DC, on console, with an 80 column screen, I cannot make my terminal any wider than 80 characters, and the site is down. This also applies for a lot of remote-access tools -- serial console as well as direct, so even if I'm not at the DC, once I'm on those interfaces, something's likely fucked up or headed that way.
- deleted 13y ago[deleted]
- barrkel 13y agoAn 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).
- __david__ 13y agoNot me. Limiting your code to 80 characters is stupid. Code != prose and you read it differently, so the prose rules don't follow. Skinnier prose is easier to read because of the sequential nature of it, which is why I do think comments blocks should be limited to 80-100ish characters. But code? No.