And this is why you use spaces for everything.
I can't imagine anyone would manually press the spacebar N times to get the desired indentation level.
Except with tabs everyone gets whatever width they want. Tab width is configurable system wide (and even in GitHub’s terrible web view).
Spaces are objectively worse in every possible way and require workarounds and editor hacks to make them behave like tabs. Skip a step & just use tabs: much better.
Go here in a browser: https://github.com/id-Software/Quake-III-Arena/blob/master/c...
Note that the use of tabs has caused un-alignment. You've claimed that tab width is configurable in git's web view, but I can't figure out how to do it.
And further, if it requires me to configure in a certain way, then it's not really true that "everyone can configure tabs how they want".
Spaces. Set it and forget it. Works everywhere, every time. Objectively better.
You can't really say that definitively without ignoring the laundry list of negatives that come with spaces. Spaces are not configurable at all. That, in itself, is reason enough that Tabs are "objectively better".
You literally provided me with more proof spaces are bad. Good example.
someType someFunctionName(
param1, param2, ...)
{
statement1;
statement2;
...
}
I find that following a style like this will work equally well with tabs or spaces and that I have to spend less time formatting code I write (either manually or changing a setting in the editor I'm using).No matter how you do it[0], alignment is bad for maintainability. It happens that someType or someFunctionName changes, and if you use alignment, you'll have to re-align all those parameters. This is annoying to do even with editor help, and it generates noisy diffs which make patch review needlessly more difficult. Aligning the names of member variables is even worse.
Just Say No to alignment, perhaps? ;)
[0] Well, except if you use "elastic tabs", which don't have widespread support in the first place.
[0] https://www.sublimetext.com/
This, too, can be fixed in most editors.