Re:Ask HN: When you code, do you use tabs or spaces?
by notacoward on Thursday December 19, 2013 @08:01AM
(#6934370)
Spaces.
Using spaces practically guarantees that code will look exactly the same for everyone, and that people won't accidentally exceed the project's 80-column rule because of how they've set tabs in their editor. It doesn't take too much diligence to avoid these issues when using tabs, but it's more than zero.
It's not a company rule; it's a project rule. I think using tabs is very slightly less optimal, but what's more important is that people be consistent across the project.
Using spaces practically guarantees that code will look exactly the same for everyone, and that people won't accidentally exceed the project's 80-column rule because of how they've set tabs in their editor. It doesn't take too much diligence to avoid these issues when using tabs, but it's more than zero.
It's not a company rule; it's a project rule. I think using tabs is very slightly less optimal, but what's more important is that people be consistent across the project.