Facade pattern

The facade pattern provides a simplified interface for a complicated system.

problems

Let we have library with difficult ecosystem. Many dependent libraries and codes. To do this, you need to refer to library number 1, to do that you need to refer to library number two. And how can I do ...?

To avoid brain explosion, developer can provide one simple high-level interface that hides this complexity.

advantages

  1. Hides complexity from clients.