In this chapter, we learned what a Facade actually is. We learned its philosophy and the uniform way in which it defines how code abstractions should be created so that they are easily understandable and reusable by other developers.
Starting from the simplest use cases of this pattern, we learned how to wrap a complex API with a Facade and expose a simpler one that is focused on the needs of our application and is a better match to its specific use cases. We also saw how jQuery embraces the concepts of this pattern in its implementation and how providing simple APIs for more basic web-developing techniques, such as DOM Traversals, played a critical role for its wide adoption.
Now that we have completed our introduction to how the Facade Pattern can be used to decouple and abstract parts of an implementation, we can move on to the next chapter where we will be introduced to the Builder and Factory Patterns. In the next chapter, we will learn how to use these two Creational Design Patterns...