Re: [PATCH] docs: Update the preferred line size to 100 characters

From: Randy Dunlap
Date: Wed Jan 19 2022 - 18:00:23 EST




On 1/19/22 13:06, Steven Rostedt wrote:
> From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx>
>
> As commit bdc48fa11e46f ("checkpatch/coding-style: deprecate 80-column
> warning") states:
>
> Increase the default limit to 100 characters. Not because 100
> characters is some hard limit either, but that's certainly a "what are
> you doing" kind of value and less likely to be about the occasional
> slightly longer lines.


Has Linus has changed his view on this since 2016?
https://lore.kernel.org/all/CA+55aFxaOFoh+Zrm5tNhU4hWu4Z032+nqV3vXK=QPJyhZsU3_A@xxxxxxxxxxxxxx/

Guess we will see.
I expect that the answer is "be reasonable," but that's subjective.

To me, it is easier to look below one line for something in context than it is
to have to scan several inches to the right and then back to the left (or vice versa).
Maybe I'm alone in that, but I doubt it.
It's sort of a locality of vision thing.


> It's 2022, people are not using 80x24 terminals anymore (well I'm sure
> someone is, but they are the small minority).
>
> Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>
> ---
> Documentation/process/coding-style.rst | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/process/coding-style.rst b/Documentation/process/coding-style.rst
> index 03eb53fd029a..73be9edffede 100644
> --- a/Documentation/process/coding-style.rst
> +++ b/Documentation/process/coding-style.rst
> @@ -101,10 +101,10 @@ Get a decent editor and don't leave whitespace at the end of lines.
> Coding style is all about readability and maintainability using commonly
> available tools.
>
> -The preferred limit on the length of a single line is 80 columns.
> +The preferred limit on the length of a single line is 100 columns.
>
> -Statements longer than 80 columns should be broken into sensible chunks,
> -unless exceeding 80 columns significantly increases readability and does
> +Statements longer than 100 columns should be broken into sensible chunks,
> +unless exceeding 100 columns significantly increases readability and does
> not hide information.
>
> Descendants are always substantially shorter than the parent and

--
~Randy