Hacker News new | past | comments | ask | show | jobs | submit login

> You specifically chose a large dependency with many sub-dependencies, so yes, that will happen.

To clarify, I did NOT choose that package. Because it brought in 690 dependencies...

Javascript didn't even have a pad left in the stdlib until the kik fiasco. Pulling in dependencies isn't really optional unless you want to start from first principles. Am I saying padding a string is difficult? No. But I am saying it's an incredibly common operation as evidenced by how much broke when it was pulled from NPM.

As as this talk from 2016 shows, the versions that used to be available on NPM don't even pass a reasonable set of tests for a left pad: https://youtu.be/FyCYva9DhsI?t=605 Not even being in the spotlight was enough to catch the bugs there, if you reimplement the world from scratch you're bound to make some errors yourself.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: