💾 Archived View for freeshell.de › gemlog › 2023-05-09_Code_layout_again.gmi captured on 2023-06-14 at 13:51:48. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-05-24)

-=-=-=-=-=-=-

Code layout again ✍️

Morgan wrote about using proportional fonts for code.

I can't see your screen when you're coding. You should use whatever font you want. But I can't agree with Morgan's assertions.

...use a proportional font. They are more readable. That’s why we use them for literally everything else besides code.

I'm not so sure, but let's assume it's true about the readability. If I'm reading ordinary text, I start at the left and work across†. But if I'm reading code, I never do that. I want to see the structure, and I get more of that with a monospace font.

what about all my careful hand-crafted indentation? Fortunately very few languages need it.

I'd say that all languages need it, and I wouldn't use a language that which enforced layout conventions...

...as I said previously‡.

Feel free to disagree. 🙂

Question for Geminauts

Despite what I've just said, I'm now curious about text interfaces with proportional fonts. I've never seen that. Does it exist?

#fonts

#CodeLayout

back to gemlog

-----

† I heard that speed readers don't start reading ordinary text at the left. What kind of voodoo is that?!

‡ I wondered about a language with no punctuation, and got the answer "Forth".