When developing software, it's recommended not to reinvent the wheel but to use battle tested libraries e.g. for sorting or proven design patterns like the GoF.
However when it comes to electrical engineering I'm unaware of such libraries. I have bought Circuit pattern trading cards however a friend of mine told me those implementations are not ideal.
Therefore I'm asking: where to find proven circuit design patterns and higher level libraries for electrical engineering tasks?