3 ms·
The reason for the single character library name is that by convention, the library is imported into a variable named "_". This reduces code noise and amount o
by robertfw 11y ago
The reason for the single character library name is that by convention, the library is imported into a variable named "_".
This reduces code noise and amount of typing if you are using these functions frequently
I'm not sure how that is silly or arrogant
- dopamean 11y agoJust someone who doesn't write much JS.
- csense 11y agoImagine if every library you used named itself with a single character. Does your language have more than 27 libraries available? Then sorry, some of their choices of letter will overlap and those libraries will conflict, perhaps requiring you to manually edit the distribution source or build scripts. Do you ever want to create a project that has more than 27 transitive dependencies? Yeah, good luck with that. Found a code snippet online and want to figure out what library it's invoking? Hint: Google is probably going to be useless when searching for a single-letter name. The problems with using single-character names for libraries are so self-evident, I'm not quite sure how to respond to someone who doesn't see it.