O'Reilly logo

jQuery Design Patterns by Thodoris Greasidis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required