4 ms·
Well, I'll be that guy then: Why are people not using tabs instead of spaces? Really: I couldn't care less about how much spaces my team mate is using for a ta
by mweibel 14y ago
Well, I'll be that guy then: Why are people not using tabs instead of spaces?
Really: I couldn't care less about how much spaces my team mate is using for a tab. I just know: Indent by tab, and everyone can set their settings on their own and it looks always perfectly indented.
- sgk284 14y agoRelevant: http://www.jwz.org/doc/tabs-vs-spaces.html http://www.jwz.org/doc/tabs-vs-spaces.html tl;dr; Spaces are the correct technical choice due to interop issues with TAB.
- BHSPitMonkey 14y agoInterop issues which, in real life, never actually surface as issues for anybody. I'm personally in the camp that feels that spaces are logically inferior; A tab uses one character to represent some atomic idea that you intend to declare (an indent level). Replicating this intent with sequences of repeated spaces is on par with centering text on a web page by using Hello World! instead of setting the text-align CSS style. (Just as that method prevents the browser from centering the text correctly according to the user's chosen viewport size, so using spaces for indentation prevents an editor from letting a user read code the way they would prefer to.) Of course, if the project/platform you're working in has an established style guide or convention in place, go with that :)
- mweibel 14y agoExactly that is what I think as well.