News for hackers. Stuff that matters.
Re:Ask HN: Tabs or Spaces by eip on Monday May 30, 2016 @04:40AM (#11800296)
Tabs. Obviously.

You can set pretty much any editor to display tabs as whatever amount of indent you want. Harder to do that with spaces.

Also spaces = tons of unnecessary button pushing.

Re:Ask HN: Tabs or Spaces by benologist on Sunday May 29, 2016 @11:06PM (#11799342)
In 2016 I think the best approach is pick a formatter (gofmt-alikes 'standardjs' etc) run it on save and not think about it anymore.
Re:Ask HN: Tabs or Spaces by minimaxir on Sunday May 29, 2016 @10:57PM (#11799308)
Vouching for this, since it's a plot point in the latest Silicon Valley episode and not a random request of preference.
Re:Ask HN: Tabs or Spaces by brador on Monday May 30, 2016 @03:25AM (#11800060)
Imagine doing it 1000 times. That's 3000-4000 space presses or 1000 tabs. RSI is not fun.
Re:Ask HN: Tabs or Spaces by smt88 on Monday May 30, 2016 @08:33AM (#11800972)
The IDE/editor takes care of that. But I still like tabs.
Re:Ask HN: Tabs or Spaces by hulahoof on Monday May 30, 2016 @12:00AM (#11799475)
I have my tabs set to 3-4 spaces - nothing is more annoying than opening in a program with a long default tab.. spaces preserve the format better across systems IMO
Re:Ask HN: Tabs or Spaces by woanversace on Sunday May 29, 2016 @10:44PM (#11799282)
Tabs
Re:Ask HN: Tabs or Spaces by rffn on Monday May 30, 2016 @03:32AM (#11800083)
Spaces.The right amount is inserted by autoindent or by setting tab width to the desired value and hitting tab then.
Re:Ask HN: Tabs or Spaces by smt88 on Sunday May 29, 2016 @10:48PM (#11799292)
Tabs for indentation, spaces after that for alignment (aka "smart tabs").

But it almost doesn't matter at all. Almost.