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


Groups > comp.lang.python > #82095

Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <admin@grails.asia>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.024
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'freelance': 0.05; 'editor.': 0.09; 'ide': 0.09; 'developer': 0.10; 'cc:addr:python- list': 0.11; 'received:209.85.218': 0.14; 'limit,': 0.16; 'limit.': 0.16; 'silly': 0.16; 'subject:Line': 0.16; 'tab': 0.16; 'tabs': 0.16; 'wrote:': 0.18; 'email addr:gmail.com&gt;': 0.22; 'rules': 0.22; 'cc:addr:python.org': 0.22; 'settings.': 0.24; 'java': 0.24; 'mon,': 0.24; '(or': 0.24; 'question': 0.24; 'cc:2**0': 0.24; 'sort': 0.25; '&gt;': 0.26; 'header:In-Reply- To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'characters': 0.30; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'lines': 0.31; 'this.': 0.32; 'stuff': 0.32; 'run': 0.32; 'url:python': 0.33; 'could': 0.34; 'agree': 0.35; 'received:209.85': 0.35; 'editor': 0.35; 'received:google.com': 0.35; 'url:listinfo': 0.36; 'subject:?': 0.36; 'similar': 0.36; 'url:org': 0.36; 'received:209': 0.37; 'e.g.': 0.38; 'pm,': 0.38; 'sure': 0.39; 'url:mail': 0.40; 'how': 0.40; 'even': 0.60; 'break': 0.61; 'lower': 0.61; 'browser': 0.61; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'between': 0.67; 'policy.': 0.68; 'from:addr:admin': 0.78; 'krish': 0.84; 'subject:Using': 0.84; 'url:asia': 0.84
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=TFn1jixIOev898nBabS7NaqJNIzhx9ZmzI+VAZwp9+0=; b=UI5gzxys9Gy0gYMUWo3odLDLXk6WehKC4RGWTSMtN3IlqxTTLRZJ47i6RSalsHA99+ zyHK0YGhRMQMxnLscdDeDpY6hAZLSwOWPx96bFHjjjjTa/wvSH4rIsuC9qdCqZbyPiVA uu1+Yc8wtnaacY2pYViPVA1XwJzIKsOaTiyTsXYcZxbk75wwQSlF8BHx0XHjqmoBLIRq vgt+Ftbfvg2vuCk1p89Pu2aYWnlITzs7Nf0kDquXh5lV+Tw3hcU3/c/PEnvFA8j8sWIE fRWE1zIJgtrSNpVSeDPXf94GYaeLKKyS6dntbSjlGiGX60UG6oL4Aq3ylt7Cp2tMyuVD J0xw==
X-Gm-Message-State ALoCoQkBQHdJsAdEnkkke4MJK0CRbNdLu01Zk0fVuEXTdAL8ogZAAKpbIUeKyZQxUjMnsZm4qb6v
MIME-Version 1.0
X-Received by 10.182.27.136 with SMTP id t8mr2916729obg.21.1418005716856; Sun, 07 Dec 2014 18:28:36 -0800 (PST)
X-Originating-IP [61.14.154.230]
In-Reply-To <CAPTjJmrDqBr56KZDeqYq0DdDoxsFjCNgS_sPoLgSG+G7qNqj=Q@mail.gmail.com>
References <CAFaCOgxq6jp5bDXcKvXztAXdwxTOBoYRmEf2v4g_1nAYwJutGw@mail.gmail.com> <CAPTjJmrDqBr56KZDeqYq0DdDoxsFjCNgS_sPoLgSG+G7qNqj=Q@mail.gmail.com>
Date Mon, 8 Dec 2014 10:28:36 +0800
Subject Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces?
From jtan <admin@grails.asia>
To Chris Angelico <rosuav@gmail.com>
Content-Type multipart/alternative; boundary=001a1133543e0b08710509ab2f8d
Cc "python-list@python.org" <python-list@python.org>
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.16698.1418005726.18130.python-list@python.org> (permalink)
Lines 98
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1418005726 news.xs4all.nl 2930 [2001:888:2000:d::a6]:56271
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:82095

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Mon, Dec 8, 2014 at 10:23 AM, Chris Angelico <rosuav@gmail.com> wrote:

> On Mon, Dec 8, 2014 at 1:15 PM, Aahan Krish <krish@aahan.me> wrote:
> > My question is to them (because I want to use tabs too) is: how do you
> > maintain a line-length of 79 characters?
> >
> > E.g. scenario: The tab setting in your editor could be 2 or 4, and in
> > other developer's browser it could be 8. The code will be longer than
> > 79 chars in the latter's editor.
>
> Easy: You stop fretting about 79 characters. :)
>

I agree with this. Just settle with your team what's your standard and have
similar IDE settings.


>
> If your policy is "lines are no more than 80-100 characters long",
> then the difference between 4-space tabs and 8-space won't break stuff
> unless it was already marginal. So if you run 4-space (or 2-space)
> indentation, you just make sure you keep your lines to the lower end
> of the limit.
>
> Even better, don't quibble about any sort of specific limit, and just
> have a policy of "don't make stuff so long that it's unreadable, and
> don't put silly arbitrary rules on your programmers". That's my
> policy.
>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list
>



-- 
Freelance Grails <http://grails.asia/> and Java <http://javadevnotes.com/>
 developer

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


Thread

Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces? jtan <admin@grails.asia> - 2014-12-08 10:28 +0800

csiph-web