Ligatures are an interesting contrast to Julia programmers' habit of using actual (non-Latin) Unicode characters in their code. It seemed to me that the use of Greek letters and symbols is actively encouraged in the Julia documentation. I think they advise using editors that allow inputting special characters through their LaTeX equivalent (but source files are then saved to disk with the Unicode characters). I am no…
A lot of Julia folks use the JuliaMono font, which has a minimal set of ligatures: https://juliamono.netlify.app/#contextual_alternates (just above this segment, they mention this very article as something they agree with). I personally don't like any ligatures, especially when people use them in presentations to public like the article mentions. Confusion between operators is rare, but possible, for eg. when using C…
Ligatures in programming fonts: hell no (2019)
131–140 of 201 posts
Re: Ligatures in programming fonts: hell no (2019)
#132Earlier quoted context omitted.
Just was wondering if today anyone is still using them, so I guess that does not need to be asked. All right, oh my captain, keep the indents and spacing tight on the monospace and sail along! Btw., anyone still using monospaced fonts in their editors?
The only people I've ever seen or heard of using proportional fonts for programming were utterly clueless freshmen newbs who mistook MS Word for a text editor...
Re: Ligatures in programming fonts: hell no (2019)
#133Earlier quoted context omitted.
For portable code, use UTF-8 only, and only the part in ASCII. This also helps to distinguish digits from alphas etc. Unicode is a different code. (and as I learned today, Julia code might be exclusive here)
UTF-8's using only characters from the ASCII subset is just ASCII, this was kind of the point of UTF-8 at inception.
Re: Ligatures in programming fonts: hell no (2019)
#134Re: Ligatures in programming fonts: hell no (2019)
#135Ideally I'd like to be able to e.g. highlight one of these weird ligatures, or a whitespace that I want to identify, or an emoji my font doesn't support and select something like "identity this character" from the context menu to see what symbol or series of symbols I'm actually looking at.
Re: Ligatures in programming fonts: hell no (2019)
#136Earlier quoted context omitted.
Fun but I tend to type code fast . Really dont need an extra modifier key. Not to mention there isnt one on your regular keyboard.
> Fun but I tend to type code fast. When you’re used to it, and given the comparative infrequency of the characters you use it for, it’s not much of a burden—just ~three key presses instead of one. > Really dont need an extra modifier key. Note that Compose isn’t a modifier key in the most common understanding of the word: you don’t hold it down while you press the others (which would certainly be awful for its ergon…
If you can stand the tiny distant Return, get a Japanese keyboard.
Re: Ligatures in programming fonts: hell no (2019)
#137Earlier quoted context omitted.
TBH, remote pairing in my experience is best done with a tool like upterm or tmate so the user can bring their own terminal toolbox (fonts, colors, settings) and it saves a lot of bandwidth too while remaining crisp, especially when text becomes compressed and hard to read.
Well not all your coworkers will have that especially if you're not a place that does pairing all the time but just as one-offs.
Re: Ligatures in programming fonts: hell no (2019)
#138Earlier quoted context omitted.
I can’t wait for a programming language that considers the strings ">=" and "≥" to be equal.
The Raku language does so already, and isn't the only one. Unclear if it will ever be ubiquitous, but I'm betting on widespread in a couple decades.
Re: Ligatures in programming fonts: hell no (2019)
#139Re: Ligatures in programming fonts: hell no (2019)
#140> The problem? Many of the programming ligatures shown above are easily confused with existing Unicode symbols. How so? It's either a ligature or a syntax error: weird unicode symbols can't be valid operators and operator ligatures cannot be valid identifiers. The exception would be string literals, though that situation would be quite rare - probably less common than ambiguity due to different but similar-looking un…
I agree the "confused w Unicode symbols" arg is pretty weak. As for "people don't mind [tabs] at all", some people mind very much and consider them pollution. If you mean _some_ people don't mind tabs, ie you're highlighting that tabs vs spaces is a bigger deal than ligatures, I concur. The logical reason to prefer spaces is that the choice is not "spaces vs tabs", it's "spaces vs (tabs and spaces)", and that mix of…
Yes, contrary to spaces/tabs ligatures only affect how it is displayed on screen, letting everyone choose how they want it without any drawback or inconsistency. Which is why I find the other argument in the link a bit unconvincing too - most code isn't shared in static screenshots, though I'll agree when it comes to books.