-- Leo's gemini proxy

-- Connecting to circadian.gemlog.org:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

Proportional Coding


We are told—correctly—that readability of code is of primary importance in large codebases. And yet, most programmers miss a simple trick that can greatly boost readability.


You might have guessed it from the title: use a proportional font.


They are more readable.


That’s why we use them for literally everything else besides code.


But, I hear you cry, what about all my careful hand-crafted indentation? Fortunately very few languages need it. In fact, the trend is in the other direction: Go and Dart, for example, were both designed with 100% autoformatting in mind, and it works very well.


Compare:


Fixed Width Font

Proportional Font


Of course you will immediately notice that the fixed width version takes up more horizontal space. That’s rather what fixed width fonts do, isn’t it? If you’re into optimizing screen real estate, proportional fonts are clearly a win.


But that’s not what I’m talking about; I’m talking about readability.


What do you think?


Feedback 📮

👍 Thanks!

👎 Not for me.

🤷 No opinion.

Comments.


So far today, 2024-05-12, feedback has been received 2 times. Of these, 0 were likely from bots, and 2 might have been from real people. Thank you, maybe-real people!


   ———
 /     \   i a
| C   a \ D   n |
   irc   \     /
           ———

-- Response ended

-- Page fetched on Sun May 12 17:41:48 2024