2 ms·
The problem with third-party libraries is that it's impossible to know which ones are "standard" and which ones are copycat hobby projects in various states of
by TheOtherHobbes 8y ago
The problem with third-party libraries is that it's impossible to know which ones are "standard" and which ones are copycat hobby projects in various states of disrepair. And in the worst case you can pick a library, get a day or two into using it, and discover it has a show-stopper limitation.
I recently hacked together some Python to process MIDI files. Should I have used this:
https://pypi.org/project/MIDIUtil/ https://pypi.org/project/MIDIUtil/
or this:
https://pypi.org/project/mxm.midifile/ https://pypi.org/project/mxm.midifile/
or this:
https://mido.readthedocs.io/en/latest/ https://mido.readthedocs.io/en/latest/
or this?
https://github.com/vishnubob/python-midi https://github.com/vishnubob/python-midi
A well-maintained and thoughtfully curated stdlib makes these choices for you - which is one less thing to worry about, and can be a significant time saver.
- tptacek 8y agoIn a perfect world everything would be in the stdlib, everything would be well-integrated, everything would serve every use case, and everything would be well-maintained by engaged and motivated maintainers. For some kinds of libraries, you can sacrifice a whole bunch of those constraints and still have it make sense to host it in the stdlib. I'm fine if the JSON library is slow or inflexible if it covers a bunch of use cases and doesn't impede people from writing better ones. You can see this to some extent with the state of "router" HTTP libraries in Go. But for some things, most notably cryptography, it's worse to have a suboptimal version in the stdlib than to have none at all.
- Rapzid 8y agoTo add to net/http not being very competitive performance wise within Go's language peer group, the stdlib file system walking methods took liberties in baking in assumptions without escape hatches that nerf the performance unnecessarily for a lot of heavy-lift use cases. Go definitely has a few shortcomings in the otherwise fantastically useful stdlib.
- roca 8y agoYou can have curation outside the standard library, without incurring all the costs of moving libraries into the standard library.