News for hackers. Stuff that matters.
Re:Black, the uncompromising Python code formatter, is stable by mumblemumble on Saturday January 29, 2022 @04:33PM (#30130741)
I love it even though I dislike quite a few of its formatting rules.

Because the only thing worse than a slightly wonk formatting convention is spending any time at all implementing, arguing about, or otherwise worrying about formatting conventions.

Re:Black, the uncompromising Python code formatter, is stable by unfunco on Saturday January 29, 2022 @05:04PM (#30131009)
Rob Pike's proverbs about Go fmt springs to mind: "Go fmt's style is nobody's favourite, but go fmt is everybody's favourite."
Re:Black, the uncompromising Python code formatter, is stable by ploxiln on Saturday January 29, 2022 @06:12PM (#30131571)
gofmt, on the other hand, gives you a lot more flexibility to wrap lines how you deem appropriate. I like gofmt way more than black.
Re:Black, the uncompromising Python code formatter, is stable by Mawr on Sunday January 30, 2022 @03:42AM (#30135118)
Exactly, gofmt is actually almost perfect. Ironically, it makes Rob's quote less meaningful.

I think gofmt's brilliance comes down to it not being overly pedantic, it doesn't have an opinion on how all code should be formatted, it only fixes what it sees as clear mistakes.

Re:Black, the uncompromising Python code formatter, is stable by javajosh on Saturday January 29, 2022 @04:52PM (#30130921)
Word. I got major pushback trying to fix this problem at my last company, which is (in part) why I'm not there.
Re:Black, the uncompromising Python code formatter, is stable by solarmist on Saturday January 29, 2022 @09:12PM (#30133136)
Yup! This.