News for hackers. Stuff that matters.
Re:Formatting code should be unnecessary by raincole on Monday September 08, 2025 @01:25AM (#45164875)
People like you are the exact reason why linter is a thing.
Re:Formatting code should be unnecessary by forrestthewoods on Monday September 08, 2025 @02:26AM (#45165185)
Don’t be rude.

I write perfectly legible code. More legible than a linter infact. Because the rules for what is ideal are not so simple as to be encoded in simple lint rules. Sure it gets like 95%. But the last 5% is so bad it ruins the positives.

If your goal is “code that is easy to read and understand” then a linter is only maybe the first 20%. Lots of well linted code is thoroughly inscrutable.

Re:Formatting code should be unnecessary by raincole on Monday September 08, 2025 @04:13AM (#45165801)
> I write perfectly legible code

I 100% believe you. And for god's sake please use linter.

British and American spelling are both 100% legible English. But when multiple people coauthor a book, they should stick to one instead of letting each author use their favorite spelling.

Re:Formatting code should be unnecessary by stavros on Monday September 08, 2025 @02:56AM (#45165342)
I disagree. It gets you 95%, and do you know how many people are better than that? One in twenty.

I'll gladly pay the price of making the one person's code worse if it improves the other nineteen's.

Re:Formatting code should be unnecessary by genericspammer on Monday September 08, 2025 @06:20AM (#45166551)
Im sure you write very readable code, but in most companies, there are a bunch of devs who completely rape the codebase with unintelligble bullshit. The linter is the first line of defense against these bozos, unfortunately it must be enforced company wide.