[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Code Width and Comment Style (Was: What counts as a fork?)
- From: Coda Highland <chighland@...>
- Date: Sun, 3 Dec 2017 09:51:21 -0600
On Sun, Dec 3, 2017 at 5:35 AM, Hisham <firstname.lastname@example.org> wrote:
> On 30 November 2017 at 05:48, Paige DePol <email@example.com> wrote:
>> What standards for code width and comments styles do you all use?
> In my own projects, I never use an arbitrary number for code width,
> for reasons I described here :
> "There are no hard or soft limits on line lengths. Line lengths are
> naturally limited by using one statement per line. If that still
> produces lines that are too long (e.g. an expression that produces a
> line over 256-characters long, for example), this means the expression
> is too complex and would do better split into subexpressions with
> reasonable names.
> Rationale: No one works on VT100 terminals anymore. If line lengths
> are a proxy for code complexity, we should address code complexity
> instead of using line breaks to fit mind-bending statements over
> multiple lines."
>  https://github.com/luarocks/lua-style-guide#line-lengths
> -- Hisham
Of course, if you talk to someone else, line COUNTS are a proxy for