News for hackers. Stuff that matters.
Re:Programming Fonts – Test Drive by valtism on Monday January 21, 2019 @01:20AM (#18958088)
I'm curious to know how you started using proportional fonts for coding. All of the tooling for writing code defaults to monospace, so what started you coding in a different style?
Re:Programming Fonts – Test Drive by edejong on Monday January 21, 2019 @02:13AM (#18958333)
For me it was efficiency of reading. It is proven that proportional, serif fonts read significantly faster (17%) [1] or [2] (6.1%). Also, in my opinion, scanning is much faster.

This makes sense: our eye uses the top and bottom of words to ‘key’ the word. Use proportional and you add information to this system.

[1] https://blog.codinghorror.com/comparing-font-legibility/

[2] https://journals.sagepub.com/doi/pdf/10.1177/001872088302500...

(edit: add references to research)

Re:Programming Fonts – Test Drive by int_19h on Monday January 21, 2019 @02:49AM (#18958523)
One of the early proponents of using proportional fonts for code was Bjarne Stroustroup - his "The C++ Programming Language" books all do that, and he briefly explains it in the intro as being more readable, and urges the readers to give it a go. I wasn't convinced, personally, but the idea was already around then.
Re:Programming Fonts – Test Drive by teddyh on Monday January 21, 2019 @04:28AM (#18958989)
The Smalltalk system also used proportional fonts, and predates that book by many years.
Re:Programming Fonts – Test Drive by int_19h on Monday January 21, 2019 @07:52AM (#18960024)
The first edition of the C++ book was in 1985, so that is roughly the same timeframe as Smalltalk-80 getting popular.
Re:Programming Fonts – Test Drive by augustk on Monday January 21, 2019 @05:29AM (#18959318)
Using a proportional font is also common (recommended) when programming in Bertrand Meyer's Eiffel or Niklaus Wirth's Oberon.
Re:Programming Fonts – Test Drive by GuB-42 on Monday January 21, 2019 @09:15AM (#18960464)
IDEs defaulting to proportional fonts are uncommon but not unheard of. I think BlitzMax or BlitzPlus uses proportional fonts by default.

Coding using proportional fonts is easy to get used to, and it has its proponents. The key is: indent, don't align, and use TABs.

Re:Programming Fonts – Test Drive by Stratoscope on Monday January 21, 2019 @02:22AM (#18958384)
Thank you for your curiosity! My other comment may answer the "how I started" question:

https://news.ycombinator.com/item?id=18958335

But one thing I'm wondering about:

> All of the tooling for writing code defaults to monospace...

Do you have an example of such tooling? One that I'm familiar with is Google's coding standards, which are obsessed with lining things up in ways that only work in monospaced fonts. Is that the kind of thing you're thinking of, or something else? Thanks!

Re:Programming Fonts – Test Drive by plasmapanda on Monday January 21, 2019 @06:41AM (#18959655)
Optimize all the things. Noto Sans is my current favorite.