Elektrine lite

← Feed

@MarauderIIC@lemmy.zip

2026-10-25 08:27 UTC

Every problem in computer science can be solved by adding another layer of indirection. Whatever is displaying the MR formats it. The server saves a normalized copy. Like crlf/lf. But for all formatting.

Replies (2)

  • Right. You can still put that through a linter; the linter just wouldn’t be concerned with human-readability. In any case, my editor would not hardcode my display preferences, so if I open and save a document, nothing changes except what I actually changed.

    Open ##5242870

  • Like crlf/lf. But for all formatting. Sure. Toooootally the same thing. Now the server will have to save a copy of your formatting preferences, checkout the project at point t-1, checkout the project at t, format it, create a diff, and present that to you. Now when you leave a comment on line x, it might be line y for another person. Or make it worse, someone introduces malicious code with UTF-8, or switches around parameters, or adds pragma comments that fundamentally change your code, but your formatter happily fixes that for you in the preview so you are oblivious. Or you’re hosting this server and someone makes a change that completely reformats the entire codebase, but you see absolutely nothing of it because the preview diff only shows “relevant” changes. All fine by you👌

    Open ##5244965