r/javascript • • Mar 02 '19

Useful javascript one-liners.

https://medium.com/@smellycode/js-one-liners-8bc0a6af2345?source=friends_link&sk=a9295a05aef9e514e137fca7eeb89cd1
344 Upvotes

96 comments sorted by

View all comments

43

u/Shaper_pmp Mar 02 '19

Why on earth would anyone use a font for programming that runs characters together and makes it difficult or impossible to determine whether something is a double- or triple-equals?

With a language like JS that's just asking for trouble...

56

u/Microwawe Mar 02 '19

I'm not a fan of firacode either but the === has three horizontal lines whereas the == has only two so it's not that impossible to tell them apart.

18

u/deadcow5 Mar 02 '19

Personally I like the font (I use it myself), but I would probably not use it for screenshots intended for distribution. Too many people are gonna ask how to produce a triple bar equals, or WTH that even means.