News for hackers. Stuff that matters.
Re:Formatting code should be unnecessary by ryandrake on Monday September 08, 2025 @11:50AM (#45169806)
Thank you! I am almost going out of my mind reading this ~200 comment thread with everyone just casually saying "linter" when they mean "formatter". Do people really not distinguish between these two very different programs?
Re:Formatting code should be unnecessary by trallnag on Monday September 08, 2025 @03:11PM (#45172529)
Lately I've switched to the terms "check" and "fix" because more and more formatters (at least in my bubble of Python and Go) are incorporating fixes. So not just rearranging code and maybe adding a comma here and there.
Re:Formatting code should be unnecessary by Narushia on Monday September 08, 2025 @03:34PM (#45172836)
I guess the line might feel fuzzy to some people, since nowadays many tools bundle both linting and formatting. And with modern IDE integrations, you might not even run them explicitly — the editor just does both automatically in one go.
Re:Formatting code should be unnecessary by beaugunderson on Tuesday September 09, 2025 @01:07AM (#45177630)
many people use the prettier plugin for eslint, for example, so in that case they're one and the same!