News for hackers. Stuff that matters.
Re:Almost monospaced: the perfect fonts for writing by kaashif on Sunday November 06, 2022 @10:11PM (#33500661)
Here's my reason: if what I see on screen doesn't match the code actually being committed, that freaks me out.

Same reason I don't like using those things where <= turns into ≤ in your editor but it's written to disk as <=.

Re:Almost monospaced: the perfect fonts for writing by somethingsaid on Sunday November 06, 2022 @11:22PM (#33501106)
Similarly, for some languages the meaning of what is written can change based on the indentation and line breaks. Or a statement written under one formatting standard can become significantly harder to read under a different formatting standard.
Re:Almost monospaced: the perfect fonts for writing by bsimpson on Sunday November 06, 2022 @11:44PM (#33501260)
There are plenty of automated formatters - clang-format, prettier, gofmt, black. You would delegate to one of them, configurable in the project/editor, and adjustable by file extension.

If the code doesn't parse, save it as-is. If it does, run the formatter with the defaults before saving. When opening, run the formatter with the user's preferences before displaying.

Gets you the benefits of a formatter, with the freedom to control your environment to your tastes. You can already pick your editor, font, and color theme. You ought to be able to pick your formatter settings too.