5 ms·
Of course that's why we write functions. But we can't share a function with others and across projects... so we make it into a module to do that. It's like (m
by tedmiston 11y ago
Of course that's why we write functions. But we can't share a function with others and across projects... so we make it into a module to do that.
It's like (micro)crowdsourcing (the smallest components of) the standard library that JavaScript never had.
Some bit of logic could go from being DRY in one project, to DRY in all of my projects, ... to eventually be DRY in all projects. It's globally DRY.
- lolidaisuki 11y ago>Of course that's why we write functions. But we can't share a function with others and across projects... so we make it into a module to do that. Sounds an awful lot like a library.