Hacker News new | past | comments | ask | show | jobs | submit login

there's definitely a benefit for this in a team environment. having some kind of consistency makes reviewing easier, not to mention onboarding new people and senior engineers jumping into unfamiliar codebases. even in open source it makes sense. there's a reason go fmt and black (for python) are so popular.

for what it's worth, i don't 100% agree with the decisions black makes, either. but luckily, you don't have to see eye to eye to reap the benefits.

two caveats: it has to be a robust auto-formatter. something like checkstyle is unsuitable, because it creates more work, not less. and the auto-formatting has to be enforced via CI.




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

Search: