Chapter 8. Façade Pattern

If application programming were simple, anyone could do it. There would be no need for books like this, software development would be even less glamorous, and the industry would need to evolve to a different business model to survive. But programming is not simple. It is actually quite complex. While acknowledging this complexity, superior programmers strive to simplify their systems. They opt to remove complexity at every chance, using any available Design Pattern, including the Façade Design Pattern. When they hear the term façade, most people will picture the false fronts of older buildings. Others may think of a sly person putting up a façade in a potentially difficult situation. The façade is this person's attempt to deceive those around them. The person's actions, feelings or reactions seem very simple, hiding the complexity they may be experiencing. In the same way, the Façade Design Pattern is designed to make dealing with complex components appear deceptively simple.

Name: Façade

The Façade Design Pattern hides complexity from a calling object by creating a simple façade interface in front of the collection of required logic and methods.

Get Professional PHP Design Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.