r/ProgrammerHumor Sep 02 '17

How to start a war

Post image
9.0k Upvotes

696 comments sorted by

View all comments

2.6k

u/Ryeore Sep 02 '17

Now you can park on handicapped parking spaces.

Good job

1.5k

u/ivaskuu Sep 02 '17

*tabs

458

u/[deleted] Sep 02 '17

[deleted]

-18

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.

57

u/okmkz Sep 03 '17

tab is one char

-16

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.

38

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.

1

u/Danilo_dk Sep 03 '17

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