by _tom_ · 4y ago · 0 comments
Ever since then, I am not opinionated about coding standards. The benefits do not match the costs.
Although I do like the approach of "use something like black on precommit", and if you don't like it, you can reformat to your standards on check out, and be happy. It will get fixed on check in.
A nice bonus is that you end up having uniformly readable code.
If you're coders can code it doesn't matter, and if they can't formatting their poor code isn't going to fix it.
It leads to the question “then what is the ultimate bike shedding issue?”
Whenever you have one of these bike shed issues in a meeting, do this: Give everyone 5 minutes to say their piece, give everyone an opportunity to ask 2 follow up questions to anyone, and a 2 minute response. Go through everyones opinion, take a vote and move on. Then set a date 1 year in the future to review/change the policy.