News for hackers. Stuff that matters.
Re:Ask HN: Tabs or Spaces? by joewood1972 on Monday May 30, 2016 @10:58AM (#11801605)
The best answer is to use a tool that saves in the format that the file was in originally. I think VSCode and some others do that. If the file only has 2-space indentation then TAB becomes 2-spaces. etc...

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.

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.
Re:Ask HN: Tabs or Spaces? by jon-v on Monday May 30, 2016 @05:33PM (#11803334)
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.)