Sujet : Re: Which code style do you prefer the most?
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.cDate : 27. Feb 2025, 07:06:22
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vpovd0$30d00$1@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 27.02.2025 02:04, Lawrence D'Oliveiro wrote:
On Wed, 26 Feb 2025 14:39:14 -0000 (UTC), Bradley K. Sherman wrote:
Just do your best to keep it neat and under 80 columns.
Even back in the day, printers were capable of display 132 columns on a
line. And even the common VT100 and its rivals could manage that, too.
My current convention is to have maximum line lengths of about 100
columns. We have large screens now; why not take advantage of them?
I think it's (basically) okay.
Why not take advantage? - One reason is (as already hinted upthread;
"80, 120, 180, or 240"?) that if you have no sensible rule of thumb
it will lead to larger and larger values. (And we can observe that
effect!) Another reason (that I mentioned in a recent post) is that
you restrict your working quality [by not restricting line length]
(for details see that previous post).
Janis