copy-pasting or writing a solution to a ""simple"" problem might work, but how often do you really understand all the edgecases.
what if instead you cooperate with others to write the dependencies you all need, and thus get much higher quality code you can upgrade across projects