Ask HN: Why/why not do you use opinionated formatters? (e.g. Black, Prettier?) 5 points by whiskey14 3y ago ↗ HN
[–] CleverLikeAnOx 3y ago ↗ Why:Avoid time wasting nit-picks on PRs.Consistent formatting may be easier to quickly read.Why not:Avoid taking a dependency.Avoid "fix formatting" commits (or the complexity of having a system auto-apply formatting).Formatters don't always make the most readable code. Sometimes non-standard formatting actually communicates more clearly.
1 comment
[ 4.8 ms ] story [ 15.3 ms ] threadAvoid time wasting nit-picks on PRs.
Consistent formatting may be easier to quickly read.
Why not:
Avoid taking a dependency.
Avoid "fix formatting" commits (or the complexity of having a system auto-apply formatting).
Formatters don't always make the most readable code. Sometimes non-standard formatting actually communicates more clearly.