2 ms·
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
by dcow 4y ago
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.
- Aeolun 4y agoI don’t care about styling, and that is exactly why I use (and enforce use of) an autoformatter.
- shepherdjerred 4y agoI 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'.