Re:Ask HN: Why do the majority of JS developers prefer space...
by lutusp on Saturday August 16, 2014 @12:22AM
(#8185407)
> Why do the majority of JS developers prefer spaces over tabs?
Because, with a fixed-pitch font such as is used in programming, the meaning of a space is unambiguous (unlike tabs). Also, having two indistinguishable whitespace characters is bad, and mixing them in a single file is worse. So one chooses the least problematic of the two.
Because, with a fixed-pitch font such as is used in programming, the meaning of a space is unambiguous (unlike tabs). Also, having two indistinguishable whitespace characters is bad, and mixing them in a single file is worse. So one chooses the least problematic of the two.