Re:Show HN: Codassium - WebRTC-based video chat and code edi...
by sgk284 on Friday April 05, 2013 @01:20AM
(#5496910)
Relevant: http://www.jwz.org/doc/tabs-vs-spaces.html
tl;dr; Spaces are the correct technical choice due to interop issues with TAB.
Re:Show HN: Codassium - WebRTC-based video chat and code edi...
by BHSPitMonkey on Friday April 05, 2013 @03:24PM
(#5500474)
Interop 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 :)
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.