News for hackers. Stuff that matters.
Re:Dev Fonts by ossopite on Friday November 20, 2020 @08:03AM (#25160042)
I switched to coding in a proportional font, Verdana, a couple of years ago and never looked back.

That's the font you are reading this comment in, in fact.

Code is mostly words and words are much easier to read in a proportional font. Symbols are plenty clear enough in Verdana, all letters are distinguishable, and I don't use mid-line alignment so I don't see the point in a monospace font outside of the terminal.

Re:Dev Fonts by tobyhinloopen on Friday November 20, 2020 @08:41AM (#25160330)
I’m changing my editor font to Verdana now... let’s see how that works out.

Edit: it feels so wrong! Let’s see if I can get used to it.

Screenshot: https://i.imgur.com/lmOR9ze.png

Re:Dev Fonts by andrewl-hn on Friday November 20, 2020 @09:43AM (#25160855)
I tried it about ten years ago. Turned out, old habits die hard. I had it for about a week, but went back to a monospaced font.
Re:Dev Fonts by elwell on Friday November 20, 2020 @10:31AM (#25161376)
What language are you using such that inter-line relative column spacing doesn't affect your code comprehension?

> I don't see the point in a monospace font outside of the terminal

Why not use Verdana in the terminal?

Re:Dev Fonts by ossopite on Friday November 20, 2020 @05:18PM (#25165756)
I'm confused. In every modern language I've used apart from go and terraform, only leading indentation matters and autoformatters do not apply mid-line alignment or align subsequent lines against characters in a previous line.

edit: and maybe Haskell? the layout rules are complicated

personally I don't think lining up e.g. variable or parameter names in c style declarations improves readability at all, and it pollutes git diffs.

but I do use a monospace font in the terminal because many command line applications align their output into columns using spaces.

Re:Dev Fonts by elwell on Monday November 23, 2020 @02:54PM (#25190959)
Good point, it is usually the leading indentation that matters most. I guess since I use Clojure mostly, I like to be able to line up pairs in a map, or a let binding. This could potentially be achieved with tabs, but I'm a spaces guy so I think variable-spaced fonts would be problematic.

> but I do use a monospace font in the terminal because many command line applications align their output into columns using spaces

Ah, makes sense.

Re:Dev Fonts by layer8 on Friday November 20, 2020 @03:20PM (#25164498)
Wouldn’t work well for ls -l.
Re:Dev Fonts by gsoto on Friday November 20, 2020 @05:09PM (#25165662)
Yes! I've been using Verdana for a decade. I still can't find a better screen font for coding.

Edit: https://i.imgur.com/JnMopk4.png

Re:Dev Fonts by aendruk on Friday November 20, 2020 @11:07AM (#25161719)
The trick to enjoying this is opting in/out on a per language or project basis.

Iosevka has a proportional variant with all the fancy ligatures that’s just delightful.

Re:Dev Fonts by woutgaze on Friday November 20, 2020 @09:00AM (#25160496)
Most Smalltalk IDE's use a variable width font by default.
Re:Dev Fonts by jdmichal on Friday November 20, 2020 @09:21AM (#25160632)
> That's the font you are reading this comment in, in fact.

Wrong. One of my favorite features of Firefox is that I get to choose whether websites can override my fonts. And they can't. Serifed Georgia is default, Ariel if they request sans-serif, and Consolas for monospace.

Re:Dev Fonts by tsjq on Friday November 20, 2020 @01:08PM (#25163108)
Curious. Does this prevent the browser from downloading webfonts thing ?
Re:Dev Fonts by jdmichal on Friday November 20, 2020 @01:49PM (#25163545)
Yes. I just reloaded the Dev Fonts page with and without locked fonts and it only downloads them when the fonts are unlocked.

I forgot to mention that one may also set a minimum font size. That one does occasionally break a layout here or there, but it's worth it for easier reading.