Have you ever heard yourself saying something like this in one of your projects? I know that it happened to me a lot of times!

When I was given a task at my job, I would usually go and search for an available open-source package on packagist.org - and if nothing that suited the needs was available, I would go and build the solution for the specific problem I was given.

A lot of times, usually a couple of weeks or months later, I had to solve a similar problem and found myself copying parts of the code that I've written earlier.

Maybe I had to tweek the code a little bit, but at the end I was duplicating my existing solution.