ewx: (poll)
[personal profile] ewx
[Poll #959499]

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

(no subject)

Date: 2007-04-03 12:42 pm (UTC)
From: [identity profile] ptc24.livejournal.com
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.

(no subject)

Date: 2007-04-03 01:05 pm (UTC)
sparrowsion: photo of male house sparrow (string-handling kitten)
From: [personal profile] sparrowsion
Agreed.

(no subject)

Date: 2007-04-03 12:47 pm (UTC)
simont: A picture of me in 2016 (Default)
From: [personal profile] simont
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.)

(no subject)

Date: 2007-04-03 05:19 pm (UTC)
ext_8103: (Default)
From: [identity profile] ewx.livejournal.com
IWBNI annotate commands had an option to skip whitespace-only changes. Maybe some do. It'd also be useful for the case where you change the indentation on some bit code because it's become conditional or repeated or something.

(no subject)

Date: 2007-04-03 12:48 pm (UTC)
From: [identity profile] cartesiandaemon.livejournal.com
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.

(no subject)

Date: 2007-04-05 07:43 pm (UTC)
ext_78: A picture of a plush animal. It looks a bit like a cross between a duck and a platypus. (barcode)
From: [identity profile] pne.livejournal.com
Sounds good to me.

I tended to use four spaces, but at work we settled on tabs (since different people have different shiftwidth preferences, and tabs seemed to alleviate this a little) and that works fine.

As long as they're not mixed, in which case things will only look right at one shiftwidth setting.

And what is really bad is if code that uses mixed spaces and tabs gets edited by someone who has a different tabstop setting and automatically converts tabs to spaces on saving. I once had to work on such code, and it was a mess; I wish the original tabs had remained since then I could have fiddled with my tabstop setting to get it to look proper.

(no subject)

Date: 2007-04-03 01:02 pm (UTC)
ext_3375: Banded Tussock (Default)
From: [identity profile] hairyears.livejournal.com
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?

(no subject)

Date: 2007-04-03 01:12 pm (UTC)
sparrowsion: photo of male house sparrow (string-handling kitten)
From: [personal profile] sparrowsion
If your editor can't be configured to your preference of spaces or tab, throw it away and get something from the current century.

(no subject)

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

(no subject)

Date: 2007-04-03 01:19 pm (UTC)
From: [identity profile] uisgebeatha.livejournal.com
*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. :/

(no subject)

Date: 2007-04-03 01:44 pm (UTC)
ext_8103: (Default)
From: [identity profile] ewx.livejournal.com
I think you've confused tabs with indentation.

(no subject)

Date: 2007-04-03 02:04 pm (UTC)
ext_8103: (Default)
From: [identity profile] ewx.livejournal.com
The first half of this article (http://www.jwz.org/doc/tabs-vs-spaces.html) may help to clarify.

(no subject)

Date: 2007-04-03 01:31 pm (UTC)
From: [identity profile] gareth-rees.livejournal.com
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.

(no subject)

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

(no subject)

Date: 2007-04-03 01:56 pm (UTC)
From: [identity profile] pseudomonas.livejournal.com
That looks highly sensible.

(no subject)

Date: 2007-04-03 02:25 pm (UTC)
From: [identity profile] cartesiandaemon.livejournal.com
I think I urgently want something like this; I've yet to think about what's actually possible (but for the moment, it would have to be backwards compatible with turning-into-spaces at work).

(no subject)

Date: 2007-04-03 06:12 pm (UTC)
From: [identity profile] fluffymormegil.livejournal.com
/* vim:ts=8:sw=4 */

(no subject)

Date: 2009-05-25 03:51 pm (UTC)
ext_78: A picture of a plush animal. It looks a bit like a cross between a duck and a platypus. (Default)
From: [identity profile] pne.livejournal.com
What's the setting of 'et'?

(no subject)

Date: 2009-05-25 06:51 pm (UTC)
From: [identity profile] fluffymormegil.livejournal.com
These days, I have expandtab switched on.

February 2025

S M T W T F S
      1
2345678
9101112131415
16171819202122
232425262728 

Most Popular Tags

Expand Cut Tags

No cut tags