5 ms·
I really like the giant, triple-line === ligature for JS in Fira Code. Makes it super-obvious when you are doing strict vs sloppy equality checks.
by amk_ 9y ago
I really like the giant, triple-line === ligature for JS in Fira Code. Makes it super-obvious when you are doing strict vs sloppy equality checks.
- kazinator 9y agoSarcasm?
- masklinn 9y agoWhy would it be sarcastic? The triple bar is also the operator for logical equivalence, which I guess is where the font authors got it.
- deleted 9y ago[deleted]
- gervase 9y agoI assume potential sarcasm would be related to the difficulty differentiating between similar symbols, based on length, with different lexicographic meanings. For example, dash vs endash vs emdash, etc: ‒ – — ― If those symbols were used in a programming language and had different meanings, differentiating quickly could be much more difficult than seeing the difference between -, --, ---, and so on at a glance.
- NoodleIncident 9y agoBut the point of the new triple-equals ligatures is that they're no longer only differentiated by length; they have three bars instead of two, as well.
- masklinn 9y ago> the difficulty differentiating between similar symbols, based on length, with different lexicographic meanings. The very thing amk_ is praising is that this issue is fixed in both Fira and Monoid by the triple-equal being not just longer but represented using 3 horizontal bars rather than just 2.
- amk_ 9y agoexactly, and the !== != forms are also correspondingly adjusted
- amk_ 9y agoJust recorded this GIF of typing out a function with the added visual cues: http://imgur.com/a/LQVV2 http://imgur.com/a/LQVV2 IMO it's comparable to a WYSIWYG equation editor vs looking at raw LaTeX - conceptual errors pop more.
- jstarks 9y agoOT, but out of curiosity what did you use to record this?
- amk_ 9y agoI used https://getkap.co/ https://getkap.co/
- FireBeyond 9y agoAlso out of curiosity, what editor / plugins are those?
- amk_ 9y agoJust VSCode with the ESLint plugin and this theme: https://marketplace.visualstudio.com/items?itemName=jdinhlife.theme-gruvbox-dark-medium https://marketplace.visualstudio.com/items?itemName=jdinhlif...
- methyl 9y agoJust use ESLint, you can make it impossible to commit when doing ==. You can exclude pretty common var == null idiom as well.