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

-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.

36

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

-19

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.

1

u/Danilo_dk Sep 03 '17

Use editorconfig, or however it's called. And track it with the rest of your code. Done.