3 ms·
What a relief to click on this and see it isn't a screed against https://github.com/psf/black https://github.com/psf/black
by foobarbecue 5y ago
What a relief to click on this and see it isn't a screed against https://github.com/psf/black https://github.com/psf/black
- zuj 5y agoSame here, clicking on the link I was thinking, here we go, one more negative opinion on the opinionated python formatter out there.
- jlongster 5y agoFunny too because Ian (author of the posted article) designed the Prettier logo
- gurleen_s 5y agoThought the same thing. It’s such a godsend, and the first thing I install on every new machine or virtualenv.
- neves 5y agohe, he, me too. It really transformed the way I program. No more mental cycles devoted to best formatting.
- abdusco 5y ago`prettier`, `black`, `go fmt` and other opinionated formatters must have saved tens of thousands of man-hours. No more fiddling with getting format juuuust right. Save the file and accept the result. Sometimes it tries to break long lists that better stay horizontal or matrices into long lists, in which case, wrapping the block with `# fmt: on/off` saves the day.
- slaymaker1907 5y agoI don't think the formatters need to be so opinionated. The problem with older tools is that they don't have the capability to fix things even when it is easy to fix in an automated way. For example, I don't really care about fixing line length issues, but I really don't want to sort my imports by hand or fix the line breaks with my blocks.