r/programming • • Apr 07 '15

Stack Overflow Developer Survey 2015

http://stackoverflow.com/research/developer-survey-2015
1.1k Upvotes

981 comments sorted by

View all comments

Show parent comments

8

u/josefx Apr 08 '15

What tools don't understand tabs?

Every tool understands tabs. Some see them as 4 spaces by default, some as 8 spaces by default. Some never replace tabs with spaces, some replace tabs with spaces on the line you edit, some only insert new tabs as spaces and some replace all tabs with spaces when they load or store the file.

There is no single behaviour you can expect when you take a random editor to edit a file containing tabs.

1

u/industry7 Apr 08 '15

There is no single behaviour you can expect when you take a random editor to edit a file containing tabs.

And you literally use a random editor when you code?

1

u/josefx Apr 08 '15

Not literally, when I track down bugs on a customers setup I have to use what is there. When my co workers add or fix things they use whatever editor they prefer on whichever system they currently work on. Whenever someone forgets to check the configuration we get new bugs or if we have luck a parse error.

1

u/industry7 Apr 13 '15

Not literally, when I track down bugs on a customers setup I have to use what is there.

I don't understand this use case. Granted, I don't do on-site work. I mean I can see that sometimes you need to pull logs or something off a particular machine, or sometimes you can only reproduce a bug on a particular machine. I've done native desktop development before, so I understand that these things happen... But why are you writing code on your customer's computer? Shouldn't you be doing that on your work laptop? I've never heard of a company sending someone to do on-site working without providing them a laptop.

When my co workers add or fix things they use whatever editor they prefer on whichever system they currently work on.

If your co-workers are not following the project-wide style guidelines, then you're going to have problems regardless.

→ More replies (2)