Re:In Praise of Stacked PRs
by dcow on Sunday July 24, 2022 @06:10PM
(#32218275)
Exactly. I’ve seen style-perfect lint-free “write once” spaghetti code that drops edge cases and error conditions left and right, and I’ve seen “ugly” but clean code that needs no introduction and works perfectly to boot. I worry that auto-formatters (not to discredit their upsides) do sometimes give people a false sense that they’re writing good code.
[ Parent
| on HN ]
I don’t care about styling, and that is exactly why I use (and enforce use of) an autoformatter.
Re:In Praise of Stacked PRs
by shepherdjerred on Monday July 25, 2022 @03:03PM
(#32229353)
I use auto-formatters so that I don't have to deal with coworkers telling me to add a new line or that I put too many/few levels of indentation.
Formatters do nothing for code quality. Linters can help quality but it's more of a last line of defense for common errors, not a signal that your code is 'good'.