Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Doesn't zero configuration just shift the bikeshedding from how to configure the formatting tool to which zero configuration formatting tool to use?

I'd go for the opposite. Find a highly configurable formatting tool and standardize on a particular configuration for code in your repo, and enforce this format when code is checked in.

Provide some scripts or wrappers or hooks (whatever is best for the source code control system you are using) that can on checkout automatically run that formatting tool but with a configuration supplied by the user instead of company standard configuration.



If you have a reliable way to get 100+ experienced programmers agree on a single style company-wide, please share =)

With a tool like black, taking it into use is a binary selection of yes/no.

Just fiddling with an .editorconfig (https://editorconfig.org) setup for a single project can take WEEKS to decide what bits to flip in which position




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: