Line length in the code

Richard Kimberly Heck rikiheck at lyx.org
Thu Jul 16 14:59:07 UTC 2020


On 7/16/20 10:40 AM, Jean-Marc Lasgouttes wrote:
> Le 16/07/2020 à 15:35, Pavel Sanda a écrit :
>> On Thu, Jul 16, 2020 at 12:45:22AM +0200, Thibaut Cuvelier wrote:
>>>> I did not test the output, but it otherwise looks fine. The one
>>>> thing I
>>>> would suggest is that you split the long comment lines, especially.
>>>> We try
>>>> to keep from having lines that are too, too long, as some people
>>>> use pretty
>>>> basic editors for their work.
>>>>
>>> How long is "long"? I tend to keep my lines under 100 characters (which
>>> even Linus Torvalds recommends:
>>> https://linux.slashdot.org/story/20/05/31/211211/linus-torvalds-argues-against-80-column-line-length-coding-style-as-linux-kernel-deprecates-it).
>>>
>>
>> We don't have strict rule, but most of the code tends to get into 80
>> chars
>> and the reason is mostly historical.
>>
>> Since Andre hides, is there actually someone who still wishes to keep
>> this archaic limit?
>>
>> There are parts of our code which clearly suffer from this limitation
>> (my favourite are qt connect two-liners ;)
>
> Well, when I  code with a terminal window side-by-side with my editor
> on my smallish xps 13, I appreciate short lines :) On a two monitor
> setup, I can live with them :)

Same here, really. Of course, setting the tab width to 4 makes a big
difference, but on a laptop it's helpful to have shorter lines.

Riki




More information about the lyx-devel mailing list