5 ms·
While it might be true that 120 chars are ideal for screens [0], the consensus is an optimal line length is roughly 50 to 75 chars. [1] [0] https://www.viget.c
by ignoramous 5y ago
While it might be true that 120 chars are ideal for screens [0], the consensus is an optimal line length is roughly 50 to 75 chars. [1]
[0] https://www.viget.com/articles/the-line-length-misconception/ https://www.viget.com/articles/the-line-length-misconception...
[1] http://webtypography.net/2.1.2 http://webtypography.net/2.1.2
- kozd 5y agoThat seems to apply for blocks of text. I don't know that the same would hold true for code.
- shakezula 5y agoWhat is code if not blocks of text
- tpush 5y agoA tree of nodes.
- shakezula 5y agoAnd we model sentences the same way
- cjg 5y agoOften significantly more indented.
- YokoZar 5y agoSentences feel different from lines of code. "One statement doing one thing per line of code" seems a reasonable idea but "one sentence per line of text" seems a bit absurd.
- kitsune_ 5y agoYeah but line formatting usually includes white space indentation in the calculation of the line length, I don't know whether you can 1:1 translate findings from normal text paragraphs like that. With linted code the actual relevant length might only be 20 characters, maybe we need some smarter linters.