I am well aware that we are in the minority when it comes to preferring tabs over spaces in JS, but, as useless as this decision is, I will fight over it the street.
It's misplaced passion and I don't care.
It's misplaced passion and I don't care.
On a slightly more serious note, the benefit of tabs is so clear: everyone can have whatever spacing they want and it doesn't affect anyone else. You just configure your IDE and it looks the way you want it to look. For whatever reason, indenting two spaces makes it hard for me to read code.
It baffles me. Of course, at the end of the day it's just one IDE setting and I don't have to worry about it (we uses spaces at work and it's fine).
var
foo = 1,
foo = 2;
The reason being that things will align whether you use a tabs with a width of 2 or 4.I also use spaces for mid-line alignment and tabs exclusively for identation. I think this is called "smart tabs"?
Semantic tabs would be good with consistent culture and tooling behind them.