A Small Tip That Will Save You a Lot of Time, Bugs, and Rage.
Let’s say you work on a huge project with many people and it is important to you that a library will be called from a wrapper you created around it or at least they know about the existence of such a wrapper.
After it’s initialization:
Any developer can just import it and use it as they wish:
But what if you have a fancy wrapper around it that reports errors to a remote server, and formats and standardizes the logs?
You wouldn’t want developers to use it directly but to use your module instead. And they will use it directly. In some point, they will. Trust me.
... read the whole story at medium.com.