[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Code Width and Comment Style (Was: What counts as a fork?)
- From: Dirk Laurie <dirk.laurie@...>
- Date: Thu, 30 Nov 2017 10:58:57 +0200
2017-11-30 9:48 GMT+02:00 Paige DePol <lual@serfnet.org>:
> Alexis <flexibeast@gmail.com> wrote:
>
>>
>> Paige DePol <lual@serfnet.org> writes:
>>
>>> From a code refactoring point of view, is there still a need to limit
>>> code to 80 columns?
>>
>> Not sure about the code-refactoring POV, but even if technology allows
>> for more columns, limiting code to less than 80 columns might benefit
>> comprehensibility and speed of reading:
>>
>> "In order for on-screen text to have both the best speed and
>> comprehension possible about 55 cpl should be used."
>>
>> -- https://en.wikipedia.org/wiki/Line_length
> ...
> What standards for code width and comments styles do you all use?
> Not for Lua, mind you, but for C or C-like languages. Of course,
> this will also depend on whether tabs or spaces are used... I do
> not want to get into a debate about spaces vs tabs, I am just
> curious about code width and comment styles is all!
I don't distinguish between languages for code width.
I use an elastic 79. I.e. it's 80, but column 80 is blank unless I am
stretching that particular line.
Reasons for stretching:
1. String constants or comments that need single-line syntax.
2. Subjective feeling that it looks better in that case.
- References:
- Re: [Proposal-ish?] Lua should bind the Lua C API as a Lua module, Luiz Henrique de Figueiredo
- What counts as a fork?, Paige DePol
- Re: What counts as a fork?, Luiz Henrique de Figueiredo
- Re: What counts as a fork?, Paige DePol
- Re: What counts as a fork?, Andrew Starks
- Re: What counts as a fork?, Dibyendu Majumdar
- Re: What counts as a fork?, Jay Carlson
- Re: What counts as a fork?, Dibyendu Majumdar
- Re: What counts as a fork?, Dirk Laurie
- Re: What counts as a fork?, Paige DePol
- Re: What counts as a fork?, Luiz Henrique de Figueiredo
- Re: What counts as a fork?, Paige DePol
- Re: What counts as a fork?, Alexis
- Code Width and Comment Style (Was: What counts as a fork?), Paige DePol