Working with GoF's Design Patterns in JavaScript Programming
page 1 of 8
Published: 08 Dec 2008
Abstract
In this article, Xianzhong demonstrates the application of six popular design patterns from GoF in JavaScript. He provides comprehensive coverage of the Singleton, Factory Method, Decorator, Observer, Facade, and Command patterns. First, he outlines the basic concept behind each pattern followed by a detailed example with the help of relevant code samples and corresponding analysis.
by Xianzhong Zhu
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 79901/ 123

Introduction

Before the Ajax appears, JavaScript is rarely utilized in the traditional Web applications, and under most circumstances developers have to face up to procedure-oriented programming. So, real advanced JavaScript developers are also rare. But nowadays, with the share of the rich client Web applications becoming larger and larger, the role of JavaScript is becoming more and more outstanding and important. How to the reuse the existing JavaScript code and deal with the changing of requirements becomes the urgent problem that every JavaScript developer has to take into account. The popular design patterns put forward by GoF (Erich Gamma, Richard Helm, Ralph Johnson, and John M. Vlissides) are welcomed by developers all over the world. As for the JavaScript field, these design patterns applies in the similar way. In this article I will show you how to apply the six popular design patterns from GoF to the JavaScript programming area by related samples.

Now, let us delve into these interesting patterns one-by-one.


View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-16 11:10:09 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search