News for hackers. Stuff that matters.
Re:Software engineering topics I changed my mind on by dozzman on Saturday January 23, 2021 @08:31PM (#25888012)
If you can, commit wholely to a parsing formatter and plug it into your CI pipeline. I've come to realise over the years that its not style I care about per-se, but consistency. With a parsing formatter and an opinionated linter, you're pretty much covered automatically across all development and developers.
Re:Software engineering topics I changed my mind on by nilkn on Saturday January 23, 2021 @08:56PM (#25888217)
Yep -- where I work, every language we use in any big way has a high-quality automated formatter, and we require all code to be formatted with these tools. It's been a dramatic improvement in code readability in general across the company. We have a few engineers who would consistently beat the formatter by a very small margin if they were formatting their code by hand, but they are the exception -- 95% of the code submitted across the company is improved by these tools.