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?

References <CAFaCOgxq6jp5bDXcKvXztAXdwxTOBoYRmEf2v4g_1nAYwJutGw@mail.gmail.com> <CAPTjJmrDqBr56KZDeqYq0DdDoxsFjCNgS_sPoLgSG+G7qNqj=Q@mail.gmail.com>
Date 2014-12-08 10:28 +0800
Subject Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces?
From jtan <admin@grails.asia>
Newsgroups comp.lang.python
Message-ID <mailman.16698.1418005726.18130.python-list@python.org> (permalink)

Show all headers | 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