[haiku-development] Re: The 80 columns limit?
- From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Thu, 02 Sep 2021 17:43:34 +0000
In my experience, 120 columns is still low enough that it does not
cause eye strain, and should continue to fit comfortably at 12pt font
size on 1366x768 screens, which is probably the smallest most
developers are using anymore; while the 50% larger number of columns
vs. 80 makes a considerable difference in how many lines have to be
wrapped, especially in a project like Haiku where we often have
verbose class names (which I do like!).
I still use 1366x768 and like to use two columns of text, both in Gerrit
(side by side diff) and in my text editor (one column with the file I'm
editing, and another with other things I'm looking at).
I would prefer to keep this limit as it is. From screen space alone I
could handle up to 100 column but that's because I use 10pt font, at
12pt it would not fit. 120 columns wouldn't fit either way.
Another argument for 80 columns is that it limits crazy code with 10 level
of nested loops and conditions. You just don't have enough space to write
the code when you try to do this because the indentation uses up all the
space. As a result, you need to split your code into smaller, easier to
follow functions. A bit of a side effect of this restriction, but since we
have no other rules or tools to watch for this, I think it's nice to have.
Other related posts: