5 ms·
Why Still 80 Columns?
- gavinhoward 4y agoI'm glad that the terminal 80-character limit was mentioned and that humans struggle with longer lines. In fact, the optimal line length is 50-75 characters [1], which is just right for 80 characters with 1+ levels of indentation. That last one is the reason why I still keep a hard 80-character limit on my own code, even though I have a 4K monitor, and a big one too (43 inches). But doing so actually has a great side effoct: keeping an 80-character limit with a 4K monitor means I can have four files open side-by-side. [2] Or a file open in four different places. Or a file and its associated header both open to two different places. It also means that I can see the code completely while debugging with four columns. [3] [1]: https://baymard.com/blog/line-length-readability https://baymard.com/blog/line-length-readability [2]: https://gavinhoward.com/uploads/4cols.jpg https://gavinhoward.com/uploads/4cols.jpg [3]: https://gavinhoward.com/uploads/4col_debugger.jpg https://gavinhoward.com/uploads/4col_debugger.jpg