News for hackers. Stuff that matters.
Re:Formatting code should be unnecessary by Cthulhu_ on Monday September 08, 2025 @05:07AM (#45166122)
But (at least for a long time), "run the linter automatically" wasn't available, not until Go's gofmt put the idea into people's heads that they could leave it to a tool. I think there were some formatting tools before then, but e.g. jslint/eslint had a lot of gaps which I unfortunately ended up pointing out in code reviews a lot. Which was nitpicking / bikeshedding, in hindsight.
Re:Formatting code should be unnecessary by memset on Monday September 08, 2025 @05:40AM (#45166307)
Interestingly, for over 30 years, C has had “indent” https://www.gnu.org/software/indent/manual/indent.html
Re:Formatting code should be unnecessary by psychoslave on Monday September 08, 2025 @06:11AM (#45166486)
What are the defaults, though, as not everyone seems to agree with GNU coding style?

>First off, I’d suggest printing out a copy of the GNU coding standards, and NOT read it. Burn them, it’s a great symbolic gesture.

https://www.kernel.org/doc/html/v4.10/process/coding-style.h...