Re:Black, the uncompromising Python code formatter, is stable
by npage97 on Saturday January 29, 2022 @04:54PM
(#30130936)
To add onto this, I also found that Black works as a nice heuristic indicating to split up code when the formatted output isn't "pretty" into separate lines.
Re:Black, the uncompromising Python code formatter, is stable
by eawoifjaiowepfj on Saturday January 29, 2022 @05:09PM
(#30131074)
It's been at least a decade since I've not used an autoformatter on every piece of code ever. I didn't realize there were people who worked at places without autoformatters still.
Re:Black, the uncompromising Python code formatter, is stable
by epage on Saturday January 29, 2022 @06:01PM
(#30131492)
Had a similar experience when I used rustfmt (which led me to trying black). I was used to formatters that over formatted, removing newlines used to dilineate sections of code, etc. I tried rustfmt when learning Rust because I figured id learn adopt standard practices.
It was revolutionary. I went from formatting as I went, even for prototyping to throwing code at my editor and letting rustfmt fix it. Big difference in productivity.
With Black, I don't spend a single moment thinking about that at all. I estimate I've got a 5-10% productivity boost in my time-spent-writing-code from this!