Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.183 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.64; '*S*': 0.01; 'alignment': 0.07; 'lines.': 0.09; 'changes': 0.15; '2.2,': 0.16; 'columns': 0.16; 'marcelo': 0.16; 'typing': 0.19; 'align': 0.24; 'tables': 0.26; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'correct': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; "skip:' 10": 0.31; 'maintaining': 0.32; 'becomes': 0.33; 'table': 0.34; 'received:google.com': 0.35; 'add': 0.35; 'patient': 0.36; 'experience,': 0.37; 'skip:& 10': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'new': 0.61; 'providing': 0.61; "you've": 0.63; 'making': 0.63; 'more': 0.64; 'great': 0.65; 'size.': 0.65; 'day': 0.76; 'bla': 0.84; 'dias': 0.84; 'visually': 0.84; 'aligning': 0.91 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:to :content-type; bh=DeA5VOfrFhfDVb2rZOgbvqv2x0WKmefVn7KiP9Ic/lc=; b=x31VYqtxXsVsnGsl/ie5irh5zCGiqjxWvMmdl1G7RLBQPvxoFUFH5Euw/RHuzNKepV hfNNN2HpkG0M+0haODst0VVY8Q+dRuOuJoOCYXulz1aomipRktNSLrW5+o58e3GYnf8A mtTbEyroiwOfNQMTWKo9MlCcb54LaktzzkKSHqj31lyct562Oyza2lm00ZdRcEDJIla4 MFurn+XwdKhnKvYrGY2ow6LkDC32hI9Nav04F3B1pPr3vao4LS1xA+5UNLc+kS/eFnVI InpQ8mAk2EPpASKZps+VjCiSKTkcCQ0On0pDDLPIs1Pr0fNYj9DQFllKQm7mOkhOx98R x/Cw== MIME-Version: 1.0 X-Received: by 10.66.118.163 with SMTP id kn3mr83393486pab.165.1375292718085; Wed, 31 Jul 2013 10:45:18 -0700 (PDT) In-Reply-To: References: <51F6C5F5.5020201@Gmail.com> <51f6e1d8$0$30000$c3e8da3$5496439d@news.astraweb.com> <51F6ED13.5010508@Gmail.com> Date: Wed, 31 Jul 2013 14:45:17 -0300 Subject: Re: PEP8 79 char max From: Marcelo MD To: python-list@python.org Content-Type: multipart/alternative; boundary=e89a8ffbab75ec7bd304e2d24967 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 63 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1375292728 news.xs4all.nl 15871 [2001:888:2000:d::a6]:58370 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51676 --e89a8ffbab75ec7bd304e2d24967 Content-Type: text/plain; charset=ISO-8859-1 > > In my experience, aligning columns in large tables reduces maintence > cost by making it much easier/faster to see what you've got and by > providing a way to visually "prompt" you for the correct value in the > correct place when you add new lines. > > Works great until one of the values changes in size. Say: bla = ( ....1.0, 1.1, 1.2, ....2.0, 2.1, 2.2, ....3.0, 2.1, 3.2, ) And one day you have to change '2.1' to '2.09999': bla = ( ....1.0, 1.1, 1.2, ....2.0, 2.09999, 2.2, ....3.0, 2.1, 3.2, ) If this happens more than once ( or twice, because I'm patient =)), maintaining the alignment becomes a chore. So I only align columns if I'm typing a table I know won't change. -- Marcelo Mallmann Dias --e89a8ffbab75ec7bd304e2d24967 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
In my= experience, aligning columns in large tables reduces maintence
<= /div>
cost by making it much easier/faster to see what you've got and by
providing a way to visually "prompt" you for the correct value in= the
correct place when you add new lines.


Works great until one of the values= changes in size. Say:
bla =3D (<= br>....1.0, 1.1, 1.2,
....2.0, 2.1, 2.2,
....3.0, 2.1, 3.2,
)

And one day you have t= o change '2.1' to '2.09999':
bla =3D (
....1.0, 1.1, 1.2,
....2.0, 2.09999, 2.2,
....3.= 0, 2.1, 3.2,
)

If this happens more than once (=A0or twice, because I'm patie= nt =3D)), maintaining the alignment becomes a chore. So I only align column= s if I'm typing a table I know won't change.


--
Marcelo Mallmann Dias
--e89a8ffbab75ec7bd304e2d24967--