9 ms·
I think automatic code formatters have huge impact. Not just to save time on manually formatting code, they also flag syntax errors; if it doesn’t format on sa
by codeptualize 5y ago
I think automatic code formatters have huge impact.
Not just to save time on manually formatting code, they also flag syntax errors; if it doesn’t format on save you know something is wrong.
In team context they take away all bike shedding about formatting. Code reviews can focus more on stuff that matters, not just silly formatting tweaks.
To me a good formatter is as essential as autocomplete.
- aitoehigie 5y agoThis is one of the reasons why any project I work with, I always include pre-commit (pre-commit.com).
- oweiler 5y agoAbsolutely. Never thought they would make such a difference until I got introduced to them when contributing to SDKMAN!. Never had a conversation about formatting afterwards.
- mooreds 5y ago> Never had a conversation about formatting afterwards. This would be worth it even if they never caught anything else or improved the quality of the code. To be able to make a decision once as a team and have it be a non-argument going forward: such a gift.
- joshxyz 4y agoGood lord, ESLint is god-sent. Type checks also catches a lot of run-time errors.