samedi 7 mars 2015

What's the best design pattern for abstracting away different backends?

Say you write an SVG library but want to provide support for multiple XML parsing libraries.


Or you have a game engine and want to support both OpenGL and DirectX.


Which design pattern best fulfills this abstraction of implementation?


Aucun commentaire:

Enregistrer un commentaire