Re:Django: Reformatted code with Black
by VectorLock on Tuesday February 08, 2022 @03:56PM
(#30264577)
How did you perform the blind survey? Format some code with Black and YAPF and ask people which they liked better?
[ Parent
| on HN ]
Yeah exactly. I had 20 samples from our codebase that showed some representative differences and you had to click on which one you liked more. The order (Black/YAPF or YAPF/Black) was randomised.
I also had to turn off Black's quote normalisation otherwise it is really obvious which is which. Quote normalisation is another point in Black's favour.
I could put the survey up somewhere if anyone is interested.