Re:Django: Reformatted code with Black
by BiteCode_dev on Tuesday February 08, 2022 @02:45PM
(#30263541)
> Sounds like a team problem,
You had a good team. I had a great mum. Some people have great doctors.
> It just shifts from "let's change this flag in yapf" to "let's switch to yapf because black looks ugly and gives us no options".
If the practice doesn't match the theory, I'd rather trust the practice.
Re:Django: Reformatted code with Black
by eredengrin on Tuesday February 08, 2022 @03:36PM
(#30264268)
Well if it helps your team out then that's great, I just wouldn't expect that to generalize well. But who knows, people are weird, maybe more would give up fighting about style because of a tool change than I expect.
Re:Django: Reformatted code with Black
by BiteCode_dev on Tuesday February 08, 2022 @05:30PM
(#30265774)
I don't have one team, I'm a freelancer, I meet 2 teams each month. I have a large sample to generalize from.
Sounds like a team problem, I've been on plenty of teams that use clang-format for c/c++ and there have never been any issues like this. Team players know that (almost all) arguing over formatting is not a good use of time. (edit: in case not clear, clang-format is extremely configurable. Set a default config and live with it forever, that's how those teams work.)
> Black took the road of gofmt: you can't chose. And it won because of that: it saved people time and energy.
I don't see how this follows, if a team was dysfunctional enough to be wasting hours and hours of time before, I can't imagine why that wouldn't continue. It just shifts from "let's change this flag in yapf" to "let's switch to yapf because black looks ugly and gives us no options".