Re:Linus on Line Breaks (2020)
by coldtea on Sunday November 28, 2021 @01:37PM
(#29371532)
Even PEP8 says "Some teams strongly prefer a longer line length. For code maintained exclusively or primarily by a team that can reach agreement on this issue, it is okay to increase the line length limit up to 99 characters, provided that comments and docstrings are still wrapped at 72 characters."
[ Parent
| on HN ]
> it is okay to increase the line length limit up to 99 characters
PEP8 is strongly biased towards making code readable, and has helped a generation of programmers start thinking about readability when coding. The line length limit, though, is one of the few parts of PEP8 that introduced defects as a practice. Holding to 80 characters causes:
* string concatenation bugs from breaking up long strings
* errors in expressions broken up into multiple expressions just to fit
* bias to use shorter variable names
My favorite part of PEP8 was the warning about "foolish consistency".
Are we supposed to be reading the PEPs?
If you care about the reasoning behind whatever feature they are implementing.
Re:Linus on Line Breaks (2020)
by GoblinSlayer on Monday November 29, 2021 @03:38AM
(#29377600)
Comments suffer even more from line length limit. I saw it many times when a comment is changed and then all following lines get rewrapped.