News for hackers. Stuff that matters.
Re:Alternative code styles by emodendroket on Monday October 15, 2018 @09:52AM (#18219621)
I have my IDE do all the formatting every time I close something and rarely personally intervene.
Re:Alternative code styles by hyperpape on Monday October 15, 2018 @10:07AM (#18219724)
That's easyish: it's a one-way street. The OP imagined something where everyone checks out code in whatever state it's in, applies their own system, then transforms it back, with no artifacts. That's hard.
Re:Alternative code styles by Ace17 on Monday October 15, 2018 @10:42AM (#18220056)
Same here, with a twist: the test suite does: global reformat (uncrustify or astyle, depending on the team), build, run the actual tests. As people almost always run the test suite before checking code in, all the project stays properly formatted.

My experience is: each time a team started doing this, all coding-style related discussions vanished, and it became a non-issue. It turns out it's a lot easier to accept a coding style you're not the one doing the actual formatting (this is why, BTW, I think stylechecking hooks alone are a bad idea).