Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsreader4.netcologne.de!news.netcologne.de!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'received:edu.au': 0.07; 'tab': 0.07; 'worse': 0.07; 'python': 0.08; 'counting': 0.09; 'default.': 0.09; 'broken': 0.12; 'wrote:': 0.15; '37,': 0.16; 'both.': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'indent': 0.16; 'message- id:@cskk.homeip.net': 0.16; 'objectively': 0.16; 'odd,': 0.16; 'plethora': 0.16; 'rantingrick': 0.16; 'really?': 0.16; 'received:202.125.174': 0.16; 'received:202.125.174.133': 0.16; 'received:boardofstudies.nsw.edu.au': 0.16; 'received:cskk.homeip.net': 0.16; 'received:harvey.boardofstudies.nsw.edu.au': 0.16; 'received:homeip.net': 0.16; 'received:nsw.edu.au': 0.16; 'sane': 0.16; 'tone,': 0.16; 'cc:addr:python-list': 0.16; 'cheers,': 0.19; 'seems': 0.20; 'input': 0.21; 'cc:2**0': 0.21; 'badly': 0.22; 'column': 0.22; 'cc:no real name:2**0': 0.22; 'header:In-Reply- To:1': 0.22; 'stuff': 0.22; 'default,': 0.23; 'indentation': 0.23; 'personally,': 0.23; 'stops': 0.23; 'code': 0.24; 'extent': 0.25; 'moving': 0.25; 'writes:': 0.25; 'do,': 0.28; 'users.': 0.28; 'bit': 0.28; 'anyway.': 0.29; 'cc:addr:python.org': 0.30; 'taken.': 0.30; 'yet': 0.30; 'least': 0.31; 'pure': 0.32; 'generally': 0.33; 'rather': 0.33; 'header:User-Agent:1': 0.34; 'there': 0.34; '(as': 0.34; "can't": 0.34; 'things': 0.34; 'weird': 0.35; '(not': 0.35; 'uses': 0.35; 'charset:us-ascii': 0.36; 'file': 0.36; 'received:au': 0.36; 'like,': 0.37; 'some': 0.37; 'but': 0.37; 'another': 0.38; 'subject:: ': 0.38; 'steven': 0.38; 'common': 0.39; 'skip:- 50': 0.40; 'choose': 0.61; 'number.': 0.63; 'received:202': 0.66; 'believe': 0.66; "today's": 0.66; 'cameron': 0.67; 'scheme.': 0.67; 'yeah.': 0.67; 'share': 0.68; 'imagine': 0.71; 'spaces': 0.73; 'why?': 0.73; 'superior': 0.74; 'subject:have': 0.74; 'alternative.': 0.84; 'begun': 0.84; 'days).': 0.84; 'inhabitants.': 0.84; 'laid': 0.84; 'neither.': 0.84; 'prey': 0.84; 'sorely': 0.84; 'subject:should': 0.84; 'swept': 0.84; 'unaware': 0.84; 'device,': 0.93; 'sea': 0.93; 'disturb': 0.95 Date: Sun, 17 Jul 2011 14:12:23 +1000 From: Cameron Simpson To: Steven D'Aprano Subject: Re: Tabs -vs- Spaces: Tabs should have won. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4e225255$0$29990$c3e8da3$5496439d@news.astraweb.com> User-Agent: Mutt/1.5.21 (2010-09-15) References: <4e225255$0$29990$c3e8da3$5496439d@news.astraweb.com> 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: 63 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1310875947 news.xs4all.nl 23912 [2001:888:2000:d::a6]:43730 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:9674 On 17Jul2011 13:09, Steven D'Aprano wrote: | Cameron Simpson wrote: | > On 16Jul2011 09:51, rantingrick trolled: | > | Evidence: Tabs ARE superior! | > | -------------------------------------------------- | > | I have begun to believe that tabs are far more superior to spaces | > | > Please Rick: you need at least three things to use the term "more | > superior". With only two, you just have superior. It grates. | | Really? If you just say "superior", how do you know if it's more superior or | less superior? Neither. We can learn from the sage Dumpty, who writes: `When I use a word,' Humpty Dumpty said in rather a scornful tone, `it means just what I choose it to mean -- neither more nor less.' | > Personally, I prefer spaces to tabs, at least fgor my Python code and | > generally anyway. Why? Well to some extent because I share files with | > another who uses 4 position tabs. Editing these is a real nightmare if | > one uses 8 position tabs (as I do, the common editor/terminal default | > these days). | | I can't fathom why 8 position tabs were *ever* the default, let alone why | they are still the default. Shrug. I imagine it's enough to be useful. An 80 column display gets 8 tab stops (not counting the edges). Personally I find 8 a little more than I would like, but 6 is displeasing and 4 may be frustratingly small for some users. I used to indent in 3s at uni, 5 is odd, 7 is just weird and 2 seems almost not worth the effort. And 1 is taken. Today's lesson is brought to you by the number 37, the lowest arbitrary number. | > For pure indentation you may get sane (if wider that liked) | > results, bit any multicolumn stuff is badly broken by the mismatch. | > | > Personally, I like to use the tab _key_ as an input device, but to have | > my editor write real spaces to the file in consequence. With pure | > spaces, the text is laid out reliably for us both. And so I have my | > editor set to that behaviour. | | I have reluctantly come to do the same thing. There is a plethora of broken | tools out there that don't handle tabs well, and consequently even though | tabs for indentation are objectively better, I use spaces because it is | less worse than the alternative. | | Victory of worse-is-better. Yeah. Worse is at least reliable in this scheme. Cheers, -- Cameron Simpson DoD#743 http://www.cskk.ezoshosting.com/cs/ It is time. Awaken, sleepers, for yet another herd of slow moving prey has swept into Peevetown, unaware of the sure fate of the fools that disturb the inhabitants. Shall it be a rending of flesh, and the lamentations of the sorely afflicted, or shall we be buried in a sea of drivel? - Woulffe