Re:Beware of Developers Who Do Negative Work
by some1else on Monday December 19, 2016 @05:32AM
(#13210603)
I think rewriting code for style purposes extremely naive. It introduces risk and sabotages `git blame`. Still see a lot of time wasted doing exactly that, as enthusiastic developers try to illuminate the rest of the team, or make things tidy. I recommend against switching to something like "standard.js" in a live project.
[ Parent
| on HN ]
Re:Beware of Developers Who Do Negative Work
by MereInterest on Monday December 19, 2016 @06:00AM
(#13210685)
Agreed. There should be a standard way that everybody on the team formats their code on check-in, and that format should not change. That way, it can be enforced by a single git pre-commit hook to clang-format. If somebody wants to work on the code formatted in a different way, well then that's just more calls to clang-format, but it never touches the repository that way.