←back to thread

3883 points kuroguro | 2 comments | | HN request time: 0s | source
Show context
thitcanh ◴[] No.26296722[source]
This is why people should use commonly-available packages instead of rolling their own version of whatever dumb algorithm they think they can write. This happens all the time. Bugs have been fixed by others, but everyone is too smart to use someone else’s code.
replies(2): >>26296847 #>>26296871 #
1. mixologic ◴[] No.26296871[source]
Sometimes those commonly used packages end up being whatever dumb algorithm the author came up with, and nobody spends the time to verify if the package is worth it's popularity.
replies(1): >>26299483 #
2. thitcanh ◴[] No.26299483[source]
Doubt that. Popularity comes with heaps of PRs, some useful some less.

If anyone used a JSON parser that took 4 minutes to parse a file you bet the author would know by the time the 100th user comes around.

I had a tiny barely-used detection library that didn’t detect it correctly in a new Edge browser update. Someone complained about it within the first month. The library has 20 stars and Edge has 500 users.

Edit: Correction, it was 9 days after the browser release.