Or perhaps not, because there's a chance people already forgot about the left-pad incident.
Terry Pratchett
>The opposite predisposition is sometimes called "proudly found elsewhere" (PFE) or "invented elsewhere".
Every system has its own sets of constraints, and its own sets of goals. Those constraints and goals don't necessarily align with the assumptions made in the library you're using, because it's rare to have a library that does precisely what you need.
When you can't find a library that meets your needs, you have two choices: 1) roll your own solution, or 2) find a library that does something similar to what you want, and coerce the library into a form that suits your needs.
Neither are pleasant options, but I find #1 tends to give a better outcome in the long run. You know what your system constraints are, so you're in a better position to design around them.
Then, assuming it’s still not worth extending, inventing it yourself isn’t such a bad idea.
I think the question is always, how smart an engineer can you be to reuse the maximal amount possible to deliver a good experience quickly.