ewx: (poll)
Richard Kettlewell ([personal profile] ewx) wrote2007-04-03 01:26 pm
Entry tags:

(setq indent-tabs-mode nil)

[Poll #959499]

(Ignoring languages like make where you don't have any choice.)

[identity profile] ptc24.livejournal.com 2007-04-03 12:42 pm (UTC)(link)
You missed: prefer spaces to tabs where practical

Or even: prefer spaces to tabs where practical, and always use spaces in Python

so I chose the combination of options that best expressed this.
simont: A picture of me in 2016 (Default)

[personal profile] simont 2007-04-03 12:47 pm (UTC)(link)
I'm somewhere between "don't mind" and "avoid". Using tabs in my free software causes me to get a steady trickle of confused mail from people who have loaded it into an editor which interprets a physical tab differently from the standard (notably Visual Studio, which AIUI can be configured into sensible mode but not per-project), and also I sometimes find it actually inconvenient during editing because tabs make complicated editor macros less predictable. So I quite like no-tabs as a policy. But I haven't adopted it yet, mostly because detabbing all my existing source would be a tedious and annoying job with plenty of scope for messing things up and would also have unhelpful effects on things like "svn blame".

Work enforces a no-tabs policy by automatic detabbing at checkin time (and you have to specially mark each makefile as exempt from this when you create it). This is surprisingly infrequently a problem, and generally seems to work well for everybody. (Though I don't think I'd go that far myself, although I might be tempted by refusing a checkin that contained an unsanctioned tab.)

[identity profile] cartesiandaemon.livejournal.com 2007-04-03 12:48 pm (UTC)(link)
Not to be mixed, at all costs? Otherwise, I don't mind so much. I'm sure one is better, but I have generally been constrained, so haven't found out which.
ext_3375: Banded Tussock (Default)

[identity profile] hairyears.livejournal.com 2007-04-03 01:02 pm (UTC)(link)
It depends whether the IDE does indentation by inserting spaces or a TAB character.

Now for the hard question: do you do tabs in SQL?
reddragdiva: (Default)

[personal profile] reddragdiva 2007-04-03 01:13 pm (UTC)(link)
[X] A four-space tab killed my parents, you insensitive clod

[identity profile] uisgebeatha.livejournal.com 2007-04-03 01:19 pm (UTC)(link)
*puts on novice geeky hat*

Well, we were taught that tabs in your code, when used correctly, make your code clearer (and certainly, in Java I found it useful to mark out where different methods were in the flow of things). On the other hand, having tabs but no curly braces (like in Python) confuses rather than helps me for some reason. :/

[identity profile] gareth-rees.livejournal.com 2007-04-03 01:31 pm (UTC)(link)
The trouble with tab characters is that they don't, by themselves, specify enough information to display them. You need to know where the tab stops are; in the absence of this information then there's no reason to expect text to come out looking the same way in different environments.

[identity profile] pseudomonas.livejournal.com 2007-04-03 01:42 pm (UTC)(link)
                        
         
     
       
        
        
     
       
       
     
       
       
        
      
     
        
       
(http://search.cpan.org/~dconway/Acme-Bleach-1.12/lib/Acme/Bleach.pm)