by klodolph · 3y ago · 0 comments
Related is the assumption that any custom-built library you write is going to beat an existing, well-known library that doesn’t exactly match your needs. It’s easy to come up with a list of problems with existing libraries, but your theoretical custom-built library can be perfect, because you’re not imagining that it has any serious bugs or design flaws. You end up building your own solution and, in the process, rediscover why the existing library was built the way it is.
Say we're looking to choose a library.
A - Let's use FooLib. It seems to be the most widely used.
B - Nah, FooLib's kind of outdated. We should use NeoFoo, it's more modern.
A - Well plain old libfoo is way faster.
B - But FooLib has a way friendlier API...
Because you're not deciding what you care about, instead of a straight bakeoff, each option is in multiple two-way fights where only its strengths or weaknesses over a particular other option are considered relevant. Option 1 beats option 2, beats option 3, beats option 1...Prioritize your requirements. Try out sentences of these forms:
I would be okay with lower performance if the API is easier to use.
I would prefer a fast implementation of this even if it were unsupported.
If you're not comfortable with them, you have learned something about your true priorities.People wanted perfect solutions in one go. Everyone was blaming software developers.
If one expects only perfect outcomes then it is easy to get high fail rate.