But no, 80-column terminals in 2020 isn't “reasonable” any more
31–40 of 330 posts
Re: But no, 80-column terminals in 2020 isn't “reasonable” any more
#32The problem here is that our editors aren't smart enough to wrap code appropriately. Word processors know to wrap lines on word boundaries; a smart code editor should be able to wrap lines and indent parameters in a human-pleasing way as you drag a window wide or narrow.
Re: But no, 80-column terminals in 2020 isn't “reasonable” any more
#33This!! At people are insisting we use a max of 80 columns for the linter. It's a huge pain compared to 100 or 130 columns and doesn't help readability. Everytime someone tries to argue for it I want to suggest we swap their Mac for a Commodore 64...
Re: But no, 80-column terminals in 2020 isn't “reasonable” any more
#34Isn’t there some merit to the notion that long lines are typically either overly verbose or mentally challenging to understand?
Applying a short limit to solve the problem of any single line becoming overly-complex will have other consequences. Most obviously, it's going to push some developers into bad habits re: naming things, where variable names that have more meaning than a counter become single letters.
Re: But no, 80-column terminals in 2020 isn't “reasonable” any more
#35I wonder how Linus feels about tabs vs. spaces (I didn't read the entire post, so maybe he addressed it?)
Re: But no, 80-column terminals in 2020 isn't “reasonable” any more
#36Typical ill-considered comment from Linus, and surprising for someone getting on his years. Column width is an accessibility issue . I'm barely in my mid 30s and the average font size has been steadily creeping, maybe 1.5 pts per 5 years. I could tolerate 132 column files today, but by the time I'm 50 there is no way this will work, regardless of screen size
Re: But no, 80-column terminals in 2020 isn't “reasonable” any more
#37Typical ill-considered comment from Linus, and surprising for someone getting on his years. Column width is an accessibility issue . I'm barely in my mid 30s and the average font size has been steadily creeping, maybe 1.5 pts per 5 years. I could tolerate 132 column files today, but by the time I'm 50 there is no way this will work, regardless of screen size
Re: But no, 80-column terminals in 2020 isn't “reasonable” any more
#38This!! At people are insisting we use a max of 80 columns for the linter. It's a huge pain compared to 100 or 130 columns and doesn't help readability. Everytime someone tries to argue for it I want to suggest we swap their Mac for a Commodore 64...
Re: But no, 80-column terminals in 2020 isn't “reasonable” any more
#39The more interesting question is "what would be a good default line length in 2020?"
I vote for 120 columns.
Re: But no, 80-column terminals in 2020 isn't “reasonable” any more
#40[1] https://llvm.org/docs/CodingStandards.html#source-code-width