Live data from Hacker News

FiraCode: Free monospaced font with programming ligatures

github.com

141–150 of 159 posts

Re: FiraCode: Free monospaced font with programming ligatures

#142
post #42

"Oh, a post about a programming font; let's see if there are any comments not from killjoys who can't help but advertise their hatred of ligatures" *opens comments* *shakes head, closes tab*

Although what did you expect, since there isn't much else to discuss about fonts that isn't subjective. We could discuss slashed vs dotted zeros, I guess.

I use Cascadia Code PL Nerd Font. What do you use?

I would like to learn how most people decide on choosing a monospace font for their code editor and terminal. Is it pure choice based on looks? Or some other things are considered?

Re: FiraCode: Free monospaced font with programming ligatures

#143

Earlier quoted context omitted.

Ligatures seem like the light theme in your analogy. I do NOT want my code looking one way in the editor, and another when reading PRs on the web. Consistency is king, and this just feels like bells and whistles some designer came up with. Same reason one uses spaces over tabs, except in Makefiles because someone decided tabs are mandatory. With spaces copying the code from one place to another doesn't change the ind…

> I do NOT want my code looking one way in the editor, and another when reading PRs on the web. Some PR tools let you select your font. I think more should. For one example on the web today, you can use github.dev (shortcut '.' on the github.com page for the PR) to open GitHub PRs in the web version of VS Code, which will Settings Sync, including font choice, with your regular VS Code profile. (Though, of course, tha…

Sounds cool, but I'm comfortable in vim. I'm curious though, what black magic does it use to sync the web to my local dotfiles? Or does VS Code have cloud accounts now?

Re: FiraCode: Free monospaced font with programming ligatures

#145

Earlier quoted context omitted.

> I do NOT want my code looking one way in the editor, and another when reading PRs on the web. Some PR tools let you select your font. I think more should. For one example on the web today, you can use github.dev (shortcut '.' on the github.com page for the PR) to open GitHub PRs in the web version of VS Code, which will Settings Sync, including font choice, with your regular VS Code profile. (Though, of course, tha…

Sounds cool, but I'm comfortable in vim. I'm curious though, what black magic does it use to sync the web to my local dotfiles? Or does VS Code have cloud accounts now?

It does support a cloud-based sync tied to either your GitHub account and/or Microsoft account.

If you prefer a more traditional git-based dotfiles sync, github.dev and GitHub Code Spaces will also look for a public or private repo under your account called dotfiles.

I don't think vscode.dev has a way to provide a dotfiles repo, though, and I think it only supports the cloud sync. (vscode.dev is the other web hosted VS Code like github.dev but for other generic things like its Theme Playground and a subset of github.dev functionality for Azure Repos missing things like PR review support because there is no equivalent extension to GitHub Issues and Pull Requests for Azure Repos.)

Re: FiraCode: Free monospaced font with programming ligatures

#146

Earlier quoted context omitted.

Sounds cool, but I'm comfortable in vim. I'm curious though, what black magic does it use to sync the web to my local dotfiles? Or does VS Code have cloud accounts now?

It does support a cloud-based sync tied to either your GitHub account and/or Microsoft account. If you prefer a more traditional git-based dotfiles sync, github.dev and GitHub Code Spaces will also look for a public or private repo under your account called dotfiles. I don't think vscode.dev has a way to provide a dotfiles repo, though, and I think it only supports the cloud sync. (vscode.dev is the other web hosted…

So what you're suggesting is vendor lock-in to solve my goal of consistency independent of context? What about Gitlab, Slack, mailing-lists? And the killer feature for losing that is ligature support?

I do have dotfiles repo but no VSCode stuff there, and no Microsoft account, might explain why I never got past the "setting up your web editor" screen when I tried the '.' shortcut.

Re: FiraCode: Free monospaced font with programming ligatures

#147
post #142

Earlier quoted context omitted.

Although what did you expect, since there isn't much else to discuss about fonts that isn't subjective. We could discuss slashed vs dotted zeros, I guess.

I use Cascadia Code PL Nerd Font. What do you use? I would like to learn how most people decide on choosing a monospace font for their code editor and terminal. Is it pure choice based on looks? Or some other things are considered?

I think you're asking which font attributes people care about.

But fwiw, there is this game-ified tool to choose fonts: https://www.codingfont.com/

Re: FiraCode: Free monospaced font with programming ligatures

#149
post #28

Ligatures, IMO, make for a bad coding editor experience. No, I do not want >> parsed as a right shift when it's actually used as two adjacent template delimiters. And no, I'm not okay with the inconsistency that results from the usage of different operators from one programming language to another. Want to change a != to a == operator? Enjoy futzing with placing the cursor properly. It's a cute idea, but I found it m…

They're definitely polarizing, in the sense that some people intensely dislike them and never use them, others love them and always use them.

It reminds me of the debates about font antialiasing back in the 1990s. A vocal minority of programmers then insisted that font antialiasing wasn't suitable for coding, as a pixel-oriented monospace font (e.g. Monaco at 9 points) provided better text density and better readability[1].

Then, like now, I could see the validity of the arguments of both sides. Readability is a highly subjective thing (and also varies over time, even for the same person). And the screens and antialiasing algorithms of the day weren't as sophisticated as what we now enjoy.

Personally I waffled on it for a while, but now I always code with ligatures enabled in my main work (which is predominantly using TypeScript and Rust, so the default ligatures of these fonts make sense).

I suspect that the majority opinion will shift to using ligatures for coding (if it hasn't already) once that is the default experience of most editors with the default fonts, and it becomes something you have to turn off, rather than turn on.

[1]: This is an example of Monaco, although what they show as 12 point is how I remember 9-point looking... not sure if my memory is faulty or what, though, it was a long time ago. https://www.fontriver.com/font/monaco/

Re: FiraCode: Free monospaced font with programming ligatures

#150
post #28

Ligatures, IMO, make for a bad coding editor experience. No, I do not want >> parsed as a right shift when it's actually used as two adjacent template delimiters. And no, I'm not okay with the inconsistency that results from the usage of different operators from one programming language to another. Want to change a != to a == operator? Enjoy futzing with placing the cursor properly. It's a cute idea, but I found it m…

Totally agree. What are some nice monospace programming nerdfonts without ligatures?
Post reply on HN