Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82099 > unrolled thread

Reasons for source code line length limits (was: Maintaining Maximum Line Length When Using Tabs Instead of Spaces?)

Started byBen Finney <ben+python@benfinney.id.au>
First post2014-12-08 15:44 +1100
Last post2014-12-08 15:44 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Reasons for source code line length limits (was: Maintaining Maximum Line Length When Using Tabs Instead of Spaces?) Ben Finney <ben+python@benfinney.id.au> - 2014-12-08 15:44 +1100

#82099 — Reasons for source code line length limits (was: Maintaining Maximum Line Length When Using Tabs Instead of Spaces?)

FromBen Finney <ben+python@benfinney.id.au>
Date2014-12-08 15:44 +1100
SubjectReasons for source code line length limits (was: Maintaining Maximum Line Length When Using Tabs Instead of Spaces?)
Message-ID<mailman.16702.1418013892.18130.python-list@python.org>
jtan <admin@grails.asia> writes:

> One reason why you would want max length 79 is because of working with
> terminals.

That reason is decreasingly relevant as terminals become virtual, in a
display window that can be much larger if we choose.

Much more relevant is the ability to have two or even three code windows
side-by-side, for comparison during a merge operation. For this purpose,
a 75–80 column limit is a great help.

But regardless of display technology, the biggest reason to stick to a
limit like 80 or less is: reader technology. The ability for humans to
comprehend long lines of text is poor, and there *is* a cognitive point
beyond which it's not helpful to have longer lines.

That line-length limit is different for different people, and many
readers (and especially code writers) will fool themselves that they can
read longer lines while unknowingly harming their comprehension. But for
sure, it remains relatively constant across generations of humans, no
matter how the display capacity increases.

-- 
 \     “If you can't annoy somebody there is little point in writing.” |
  `\                                                    —Kingsley Amis |
_o__)                                                                  |
Ben Finney

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web