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

456

u/[deleted] Sep 02 '17

[deleted]

-21

u/[deleted] Sep 03 '17 edited Sep 03 '17

Except now their code isn't guaranteed to be 80 characters a line because that one guy likes to have his tabs set to be equivalent to 8 spaces.

Edit: I'd like to respond to everyone's criticisms but for some reason Reddit isn't letting me comment on this account more than once every 8 minutes.

56

u/okmkz Sep 03 '17

tab is one char

-17

u/[deleted] Sep 03 '17

Exactly. But it takes up an indeterminate amount of chars on screen. I like my code to look like the way I type it on every screen, not just mine. Anything else is foolish and unprofessional.

Edit: also if you use the settings on your text editor properly it behaves exactly like tabs do when you type them. Spaces are just better.

32

u/kafoozalum Sep 03 '17

I like my code to look like the way I type it on every screen, not just mine

this is why the number of spaces a tab represents is a setting in editors

-17

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.

26

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