Re:Ask HN: Tabs or Spaces?
by gumballhead on Monday May 30, 2016 @12:09PM
(#11801931)
GitHub renders tabs as 8 spaces. It is crazy and looks ridiculous.
This is actually the only truly rational defense I can come up with for my preference of spaces vs tabs. (The generic argument is that the code will look the way I want it to even when rendered by a tool where I can't control the tab width, but Github is the only real example these days.)
That said, assuming a greenfield the best case has to be to use tabs. This way if somebody has a preference to small indents then they can configure the TAB to render as 2-spaces - it becomes a render issue.
So, use a modern tool and it's a moot point.
P.S. not sure why Silicon Valley's Richard started talking about 8 space tabs. That would be crazy. The only time I've seen that is in a proportional font in a word processor.