lkml.org 
[lkml]   [2014]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC PATCH] CodingStyle: remove what nowadays might be considered polemic
From
Date
On Sun, 2014-12-21 at 11:23 +0100, Alexander Holler wrote:
> Am 19.12.2014 um 14:36 schrieb Alexander Holler:
> > In times where things like checkpatch do exist and are mandated to be used,
> > it would be easy to warn if too many levels of indentation are used (e.g.
> > by counting leading tabs).

checkpatch already does that looking for 6+ leading
tabs then any statement that increases indentation.

> I've heared that wrong argument that a maximum line length
> of 80 chars helps in regard to keep the levels of intendation low once
> too often.

I believe that argument correct.

helps is not a mandate.

The idea is that code that start far from the left
(for some definition of far) is a signal that code
could be refactored into more discrete chunks.

Without a limit to line length, more code would
likely not have been as disaggregated as today.



\
 
 \ /
  Last update: 2014-12-21 18:41    [W:0.046 / U:0.612 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site