Archive for the JavaScript category
« Previous
Tuesday, August 19th, 2008
The Module is a brilliant design pattern which demonstrates the elegance of the JavaScript language by exploiting closure (one of JavaScript’s most powerful features) to create private members. The Module makes use of Self-invocation making it useful as an application wrapper.
This pattern was originally discovered and named by Douglas Crockford.
Motivation
By default, there is no natural [...]
Posted in Code, Design Patterns, JavaScript | No Comments
Monday, August 18th, 2008
Load time configuration is the process where a JavaScript application configures itself as it is being loaded. This pattern is most commonly found in libraries in which they configure themselves at load time to be optimized for a particular browser.
Load time configuration is also known as load time branching.
Motivation
The primary motivation behind load time configuration [...]
Posted in Code, Design Patterns, JavaScript | 1 Comment
Sunday, August 17th, 2008
I would like to begin this series of posts with one of the most useful and commonplace patterns in my code. Arguably, this can be considered a feature of the JavaScript language rather than a design pattern; however, when considering the contexts in which it is applied, I regard it as a pattern.
Self-invocation (also known [...]
Posted in Code, Design Patterns, JavaScript | 1 Comment
Saturday, July 26th, 2008
Earlier this week I gave an Ajax presentation for NYPHP. It felt a little strange presenting a JavaScript topic to a bunch of PHP developers, but I made it come back to PHP by demonstrating a the latest Panda PHP package which is only in incubation at the moment. (I’ll formally announce that in a [...]
Posted in Code, JavaScript, PHP, Talks | 1 Comment
« Previous