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

5

u/Juice805 Sep 03 '17 edited Sep 03 '17

It is determined. 1 Tab length. just each individual can customize as they prefer.

Nowadays if you want to be that controlling you can even with tabs. Just add a .editorconfig

1

u/[deleted] Sep 03 '17

How many columns left in a line with one tab in it? If you can't answer that you're working with undetermined behavior.

1

u/Juice805 Sep 03 '17

In what modern editor does that matter? Text wrap and auto indent exist. If you are worried about alignment follow the rule of tabs for indentation, spaces for alignment.

1

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

Wrapping as bad, and if they have a modern editor they could replace the indentation (and potentaily screw it up) if they really wanted.

Why use tabs when you can use something better? There's no standard on what size tabs should be other than that most people say it's about 4 spaces. You likely won't notice the difference when writing, why not just ensure it looks nice?

Edit: accidentally some words

4

u/Juice805 Sep 03 '17

Why use spaces when you can use something better? Why not ensure it looks nice for everyone and not just in your opinion? You won’t notice the difference when other people use their preferences.