4 ms·
Why waste time rewriting something like leftPad?
by scottmf 8y ago
Why waste time rewriting something like leftPad?
- victorNicollet 8y agoleftPad is an exceptional case because 1° it should have been part of the standard library and 2° it is a library that only contains one function.
- rejschaap 8y agoCalling it a library is a stretch. The whole leftPad controverse makes a pretty good case for rewriting. It would have saved many people a lot of trouble. Also, if you know your langauge, rewriting it is probably faster than finding, installing and using a package.
- scottmf 8y agoThe trouble with leftPad was a flaw of NPM which could have happened with any package.
- cup-of-tea 8y agoReally? It would take ten minutes of my time once, as opposed to risking the idiotic errors that occurred when people depended on that "library" being available. I'm suppose to make sure stupid shit like that doesn't happen. It's not a waste of my time. It's my job.