Let's say you are writing a bigger project and you have to use 3rd party libraries. So your complete project will be depended on these libraries.
I thought instead of using those 3rd party libraries directly, I would write some sort of an wrapper library or an interface that would look something like this.
void myMainloop(...){
3rdpartyMainloop(...);
}
So if the 3rd party library gets outdated I just could switch to another library by just integrating it in my wrapper library.
Is this a good thing to do? What alternatives do I have?
I am a little bit worried that if I have two libraries that are essentially doing the same thing but are completely different designed, that it is not possible to find an generic interface for both.