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


Groups > comp.lang.python > #82101

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

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.014
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'say,': 0.05; 'subject:code': 0.07; '*is*': 0.09; 'degree,': 0.09; 'lines.': 0.09; 'spaces': 0.09; 'sure,': 0.09; 'cc:addr:python-list': 0.11; 'finney': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'readable': 0.16; 'subject: \n ': 0.16; 'subject:?)': 0.16; 'subject:Line': 0.16; 'tabs': 0.16; 'tends': 0.16; 'ignore': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'stick': 0.24; 'helpful': 0.24; 'mon,': 0.24; 'regardless': 0.24; 'question': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'character': 0.29; 'dec': 0.30; 'technology.': 0.30; 'message-id:@mail.gmail.com': 0.30; '(which': 0.31; 'lines': 0.31; 'that.': 0.31; 'indentation': 0.31; 'text': 0.33; 'reader': 0.33; "i'd": 0.34; 'subject: (': 0.35; 'display': 0.35; 'beyond': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'ben': 0.38; 'pm,': 0.38; 'ability': 0.39; 'how': 0.40; 'even': 0.60; 'referred': 0.60; 'worry': 0.60; 'eye': 0.61; 'length': 0.61; 'more': 0.64; 'different': 0.65; 'between': 0.67; 'biggest': 0.67; 'limit': 0.70; 'technology,': 0.70; 'subject:Using': 0.84; 'subject:limits': 0.84; 'subject:source': 0.84; 'cognitive': 0.91; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=gUn95rFfIoBCqp5mShQUS8b3VyN1O4dGxGB+FWTPEfo=; b=AAIxErW2QyEdjlBH8FfkkXszGkqX55yHU8RbdWK0SLaVj0AComluHuO2Q/f2ak6L/2 ZyXwtCCpfVvOec9D9ih3dAN0Wta5oQOdiseI8zVkeMxEaEclQSNri6Uu/414KNlajpHS o+exXNmJsPaaooAsr8Hd3ANahIRRas4XD4sc/cB5MPH4J+7QlYoZx23+aAA2l2wMK+55 jfSao6Y+JzG+BbwwwPsh6RaVYtGSxuzpNcpvpitOi6O21TfdhEqg02dJc/v2mUzl55P9 cEvDKi6b6zXcmfxkMVRzYBM0pzPt1dsPA5YTDRQ+HVdKiloqS9ZZ3ZaznWbGUADR80gu QsIw==
MIME-Version 1.0
X-Received by 10.107.17.79 with SMTP id z76mr8845487ioi.27.1418014102203; Sun, 07 Dec 2014 20:48:22 -0800 (PST)
In-Reply-To <85iohmsqbr.fsf_-_@benfinney.id.au>
References <CAFaCOgxq6jp5bDXcKvXztAXdwxTOBoYRmEf2v4g_1nAYwJutGw@mail.gmail.com> <CAMu67MZPhSYessyjP4UD0DWe5sX3YkKqsgPqzbiXhVezNsQ55g@mail.gmail.com> <85iohmsqbr.fsf_-_@benfinney.id.au>
Date Mon, 8 Dec 2014 15:48:22 +1100
Subject Re: Reasons for source code line length limits (was: Maintaining Maximum Line Length When Using Tabs Instead of Spaces?)
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.16704.1418014105.18130.python-list@python.org> (permalink)
Lines 17
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1418014105 news.xs4all.nl 2919 [2001:888:2000:d::a6]:47024
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:82101

Show key headers only | View raw


On Mon, Dec 8, 2014 at 3:44 PM, Ben Finney <ben+python@benfinney.id.au> wrote:
> 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.

This is true. However, the human eye tends to ignore leading
indentation to some degree, so in terms of the original question
(which referred to tabs vs spaces and how that interacts with the line
length limit), it's even less important to worry about exact character
counts.

Sure, a 500-character line is less readable than a 75-character line.
But how much difference is there between 79 and, say, 90? I'd say
there's more variation between different people than that.

ChrisA

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Reasons for source code line length limits (was: Maintaining Maximum Line Length When Using Tabs Instead of Spaces?) Chris Angelico <rosuav@gmail.com> - 2014-12-08 15:48 +1100

csiph-web