3 ms·
> Tabs for indentation; spaces for alignment On a large code base with multiple committers, I've never seen this rule followed consistently. In fact, I think t
by hn_throwaway_99 9y ago
> Tabs for indentation; spaces for alignment
On a large code base with multiple committers, I've never seen this rule followed consistently. In fact, I think this shows a poor engineering decision: "Let's make a rule where everything looks OK 95% of the time, except when you change tab widths (which is, presumably, why we made the rule in the first place.)"
- tomsmeding 9y agoWell everything looks OK 100% of the time if everyone followed the rule. Sadly, human history tells us that's an invalid assumption to make.
- bpicolo 9y agoForcing people to remember relatively minor things is a poor use of headspace. Enforce a code formatter/linter, make the test suite success dependent on it, and never argue again.
- benibela 9y agoI often run into trouble with IDEs that think they are smart, but aren't. "I see you have a space following a tab, so I will replace all your spaces with a tab, whenever you save the file"