Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'projects,': 0.05; 'width': 0.05; 'formatting': 0.07; 'removes': 0.07; 'tab': 0.07; 'guideline': 0.09; 'files.': 0.10; 'am,': 0.13; 'wrote:': 0.15; '-tkc': 0.16; 'beginners.': 0.16; 'defaults.': 0.16; 'editor,': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'message-id:@tim.thechases.com': 0.16; 'rantingrick': 0.16; 'received:70.251': 0.16; 'received:dsl.rcsntx.swbell.net': 0.16; 'received:rcsntx.swbell.net': 0.16; 'received:swbell.net': 0.16; 'side.': 0.16; 'tab,': 0.16; 'argument': 0.16; 'preference': 0.16; 'subject:was': 0.16; 'cc:addr:python-list': 0.16; 'written': 0.17; 'command': 0.19; '(which': 0.20; 'cc:2**0': 0.21; 'cc:no real name:2**0': 0.22; 'header:In-Reply-To:1': 0.22; 'code.': 0.22; 'base.': 0.23; 'picking': 0.23; 'reason,': 0.23; 'code': 0.24; 'handles': 0.25; 'function': 0.26; "i'm": 0.27; '"the': 0.29; 'cc:addr:python.org': 0.30; 'fact': 0.30; '"good': 0.30; 'controlled': 0.30; 'shifting': 0.30; 'standards': 0.31; 'source': 0.32; 'break': 0.33; "i've": 0.33; 'header:User-Agent:1': 0.34; 'tools.': 0.34; "can't": 0.34; 'uses': 0.35; 'options': 0.36; 'error.': 0.36; 'rules': 0.36; 'some': 0.37; 'doing': 0.37; 'languages': 0.37; 'but': 0.37; 'several': 0.37; 'could': 0.37; 'using': 0.37; 'user': 0.38; 'subject:: ': 0.38; 'should': 0.39; 'skip:e 20': 0.39; 'help': 0.39; 'either': 0.39; 'might': 0.39; 'choose': 0.61; 'projects': 0.62; 'back': 0.63; 'our': 0.63; 'ever': 0.65; 'freedom': 0.68; 'offer': 0.72; 'spaces': 0.73; 'subject:have': 0.74; 'forth': 0.77; '11:51': 0.84; 'spaces.': 0.84; 'subject:should': 0.84; 'flip': 0.91; 'cater': 0.93 Date: Sat, 16 Jul 2011 12:52:34 -0500 From: Tim Chase User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: rantingrick Subject: Re: feeding the troll (was: Tabs -vs- Spaces: Tabs should have won.) References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Source: X-Source-Args: X-Source-Dir: Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 55 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1310838769 news.xs4all.nl 23956 [2001:888:2000:d::a6]:54514 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:9637 On 07/16/2011 11:51 AM, rantingrick wrote: > 1) Using only one indention token removes any chance of user error. I'm not sure it "removes any chance of user error"...programmers are an awfully error-prone lot -- especially beginners. Picking one or the other might help reduce friction when learning or shifting between projects (which PEP-8's 4-space guideline does), but editor peculiarities may differingly save files. > 2) Tabs create unity in the source code base. This could go either way...fortunately the code is already written and tested and appropriately handles both tabs and spaces. A dictum one way or the other would break existing code on the shunned side. I can't say this is a particularly convincing argument. > 3) Tabs create freedom in the form of user controlled indention. > > Indention width should be a choice of the reader NOT the author. We > should never "code in" indention width; but that is EXACTLY what we > are doing with spaces! No, the reader should be able to choose the > indention width without ANY formatting required or without any > collateral damage to the source code. Tabs offer freedom, spaces offer > oppression. While I prefer tabs for exactly this solitary reason, the fact that it means agreeing with rantingrick is almost argument enough to start preferring spaces. :) > 4) Tabs remove the need for complicated indention/detention tools. I'm not sure this has ever impacted me. It's always been a function of the editor, and using Vim, this is a non-issue for me. I've used several other editors as well and most worth any time-investment have options to control just this behavior (expanding tabs to spaces & how many spaces a tab should be treated as). I flip back and forth between several projects, some use PEP-8's 4-space indentations, some use a single tab, and one uses an oddball 2-space indentation. It's a single command in Vim to adjust for the projects, and the ones I work on most frequently are the ones I have set as my defaults. > We should never create languages that cater to the selfish. Our rules > must take in consideration the "good of the many", and NEVER "the good > of the few". so sayith the guy who selfishly wants to change existing standards of freedom-for-many to the preference of his few? :) -tkc