Why I Indent My Code 8 Spaces? (2018)
simplystatistics.org
simplystatistics.org
https://www.reddit.com/r/javascript/comments/c8drjo/nobody_t...
Discussed:
This is flat wrong. Tabs are one character, not 8, and they always take a variable amount of space. Proof: type 3 spaces. Now type <tab>. Your cursor will not be 11 "characters" over. It will be at the next tabstop multiple, which will likely be either column 4 or 8. The fiction that tabs are somehow composed of a fixed number of multiple "spaces" (a completely unrelated whitespace character) is only sustainable by restricting tabs to the beginning of lines; programmers who fail to understand this and treat tabs as "a typing shortcut for lots of spaces" will inevitably be burned when they try to use tabs for alignment.
Tabs are not made of spaces. They do not have a globally defined or even a locally fixed width. This is right and proper and really not that complicated.