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


Groups > comp.lang.python > #82223

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

Path csiph.com!usenet.pasdenom.info!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail
From sohcahtoa82@gmail.com.remove-cdt-this
To jtan
Subject Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces?
Message-ID <54866F2E.1761.complang@piz.noip.com> (permalink)
X-Comment-To jtan
Newsgroups comp.lang.python
X-FTN-AREA COMP.LANG.PYTHON
X-FTN-PID SoupGate-Win32 v1.05
X-FTN-MSGID <cba0d2c9-c224-4db3-9f74-7962e897e2ef@googlegroups.com> 44eb7d4f
X-FTN-REPLY <mailman.16697.1418005550.18130.python-list@python.org> b93580c3
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway piz.noip.com [Synchronet 3.15b-Win32 NewsLink 1.92]
X-Server piz.noip.me
Date 9 Dec 2014 11:32:01 -0500
Lines 60
Organization Unlimited download news at news.astraweb.com
NNTP-Posting-Host 2266ad8f.news.astraweb.com
X-Trace DXC=LP`[=a9Aa>5CObSL`Ra@h6L?0kYOcDh@:RScV177L_P1Zh[e@ZS;QS3l23]GVn`Zm6MHo6fPSBkU;04hIVDTD?[;7g\XjYcGeh9fPiGS6_2a\=
Xref csiph.com comp.lang.python:82223

Show key headers only | View raw


  To: jtan
> On Mon, Dec 8, 2014 at 10:15 AM, Aahan Krish <kr...@aahan.me> wrote:
> My understanding from talking to different people is that many do use
> 
> tabs (instead of spaces) for indentation in their code.
> 
> 
> 
> 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.
> 
> 
> 
> I want to know if it's at all possible or if you use some simple and
> 
> realistic (practical) hacks.
> 
> 
> 
> *PS: Please avoid, "That's why you should use spaces," type of
> 
> comments. I would like to avoid flame wars.*
> 
> 
> 
> TY,
> 
> Aahan

On Sunday, December 7, 2014 6:26:01 PM UTC-8, jtan wrote:
> One reason why you would want max length 79 is because of working with 
terminals.  Maybe ssh to you server and check how many spaces are consumed by a 
tab?  In my boxes, it is usually 1 tab = 8 spaces.  So perhaps just use that 
setting in your editor?


My terminals are 120 columns wide.

Are there still people that are limiting their terminals to 80 columns?  If so, 
why?  I mean, I can understand if you're running on an ancient square monitor, 
but I see no reason to limit your terminal to 80 columns if you're running any 
sort of window 
environment on monitor with a horizontal resolution greater than 1280.

"Because that's how we've always done it!" is a pretty shitty reason to 
continue doing something.

--- SoupGate-Win32 v1.05
 * Origin: <SpaceSST.BBS.Fidonet<>NNTP.gateway.@.piz.noip.me> (1:249/999)
--- Synchronet 3.15b-Win32 NewsLink 1.92
SpaceSST BBS Usenet <> Fidonet Gateway

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


Thread

Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces? sohcahtoa82@gmail.com.remove-cdt-this - 2014-12-09 11:32 -0500
  Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces? "Ben Finney" <ben.finney@1:249/999.remove-cdt-this> - 2014-12-09 11:32 -0500
  Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces? "Dave Angel" <dave.angel@1:249/999.remove-cdt-this> - 2014-12-09 11:32 -0500

csiph-web