News for hackers. Stuff that matters.
Re:Things I wished more developers knew about databases by yjftsjthsd-h on Wednesday April 22, 2020 @11:55AM (#22946917)
That sounds like bad tooling. Why not have every project use https://editorconfig.org/ and then have your IDE auto-format? It shouldn't be popping up and making you fix it, it should fix it for you.
Re:Things I wished more developers knew about databases by lowercased on Wednesday April 22, 2020 @12:07PM (#22947055)
So there are tools that autoformat as you type?

let longVariableName = "hello " + this.name;

magically becomes

const longVariableName = `hello ${this.name}`;

without visually flagging it, just autocorrects as I type?

And... I can just quickly swap settings for different clients? Because one has eslint block any PRs that don't have "prefer template" rules followed but another client doesn't like that style, and don't want that style in their code because it conflicts with existing style.

Re:Things I wished more developers knew about databases by yjftsjthsd-h on Wednesday April 22, 2020 @12:10PM (#22947096)
I don't think that counts as a formatting issue. Yes, if your clients have hard rules about different coding styles at that level then it's not a technology problem (nor is it likely solvable with technology). I assumed we were talking about formatting issues like tabs-vs-spaces, in which case yes every single project could be different but auto-fixed.
Re:Things I wished more developers knew about databases by lowercased on Wednesday April 22, 2020 @12:49PM (#22947553)
thx. sorry, i sounded a bit snarky before and wasn't meaning to be. it's just easier for people to focus on visual issues vs operational/functionality. and switching between multiple projects/clients/standards illustrates to me how relatively unimportant some of these things are (but of course just imo).
Re:Things I wished more developers knew about databases by infogulch on Wednesday April 22, 2020 @04:26PM (#22949805)
I would encourage you should check out editorconfig more closely. The whole idea is that each project has a file that defines the simple formatting rules for various file types in the project/directory tree and your editor will automatically follow them on a per-project basis. It's surprisingly well supported across editors.