Chapter 14. Singleton Pattern
In Part II, “Creating and Using the JavaScript Engine,” we covered two advanced ways of creating JavaScript objects, the creation of the Ajax engine, and how to debug and put the engine to use in your web applications. We also covered extending the engine, which we will continue to do in this part of the book. I will show you how to take your Ajax applications to the next level by using design patterns in your code to help you optimize and build scalable applications that can be easily updated with future features.
Design patterns help solve common programming problems. For instance, the Singleton pattern solves the problem of having to instantiate multiple instances of an object throughout an application by simply ...
Get Ajax for Web Application Developers 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.