News for hackers. Stuff that matters.
Re:Tabs or spaces – Parsing a 1B files among 14 programming ... by zbjornson on Wednesday August 31, 2016 @11:17AM (#12398937)
That's also hazardous when you later add an_even_longer_variable and then have to modify three extra lines to make them align.
Re:Tabs or spaces – Parsing a 1B files among 14 programming ... by spinningarrow on Wednesday August 31, 2016 @01:04PM (#12399791)
Exactly. To be fair, I believe most popular editors have plugins/shortcuts to do this. Or at least I hope people aren't doing this manually.
Re:Tabs or spaces – Parsing a 1B files among 14 programming ... by dkuntz2 on Wednesday August 31, 2016 @03:57PM (#12401021)
But if anyone looks at a diff, it looks like all the lines have changed, instead of just one, taking just a tiny bit more cognitive overhead.
Re:Tabs or spaces – Parsing a 1B files among 14 programming ... by citrusx on Wednesday August 31, 2016 @11:48PM (#12402984)
`git diff -w`
Re:Tabs or spaces – Parsing a 1B files among 14 programming ... by tnorthcutt on Friday September 09, 2016 @11:02AM (#12462839)
But `git blame` still sees the whitespace change, right?

Edit: turns out `git blame -w` works as expected, ignoring whitespace. The More You Know™