Friday, June 13, 2008

Javascript and design patterns(100)

Javascript is one of the most popular and widely used languages in the world today.Because it is embedded in all modern browsers, t has an extraordinarily wide distribution. As a language, it is incredibly important in our daily lives, powering the websites that we go to and helping the web to present a rich interface. Why then do some still consider it to be a toy language, not worthy of the professional programmer? I think it is because people do not realize the full power of the language and how unique it is in the programming world today.Javascript is a very expressive language, with some features that are uncommon to the C family of languages. In this blog and subsequent ones , i will be looking at how the langauge allows you to accomplish the same task in a number of different ways and how you can take alternative approaches to object-oriented programming by using concepts from function programming.The truth is you can apply design pattern concepts in your Javascript programming. In a couple of articles that follows i will be discussing briefly the following design patterns as it concerns javascript with functional example to give you a concrete example of each of them:
The Factory pattern
The Bridge pattern
The Composite pattern
The Facade pattern
The Adapter pattern
The Decorator pattern
The Flyweight pattern
The Proxy pattern
The Observer pattern
The Command pattern
The Chain of Responsibility pattern
Keep a date with me while a take you through the world of javascript design patterns

No comments: