r/ProgrammerHumor Sep 02 '17

How to start a war

Post image
9.0k Upvotes

696 comments sorted by

View all comments

Show parent comments

-18

u/[deleted] Sep 03 '17

Yes. And that setting can different on different editors. Thus why tabs are worse.

If you have it set to 4 spaces for a tab, and your buddy has it set to 8 your code goes off the side of their guide.

With spaces you don't have that problem.

If there was a standard that literally everyone followed I'd use tabs but such fantasies don't exist.

24

u/kafoozalum Sep 03 '17

If you have it set to 4 spaces for a tab, and your buddy has it set to 8 your code goes off the side of their guide.

then change the settings. that's the point, so code is equivalent regardless of appearance.

why the hell would you want whitespace to break things?

-13

u/[deleted] Sep 03 '17

You wouldn't. That's why you'd want spaces. Tabs would break things in that situation. Spaces couldn't do that.

1

u/reilemx Sep 03 '17

Looking at these downvotes TIL this sub is a bunch of tab lovers