Re: [RFC PATCH] CodingStyle: remove what nowadays might be considered polemic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 21.12.2014 um 18:09 schrieb Joe Perches:
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.

Oh, nice. I didn't know that.

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.

I think people just make variable and function names even more cryptic (shorter) in order to let them fit into the remaining free space. That seems to be easier for most than to refactor their code.

Regards,

Alexander Holler
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux