Thursday, August 30, 2012

Javascript Patterns

I found this site while digging through the jQuery UI 1.9 source.

A JavaScript pattern and antipattern collection that covers function patterns, jQuery patterns, jQuery plugin patterns, design patterns, general patterns, literals and constructor patterns, object creation patterns, code reuse patterns, DOM and browser patterns (upcoming).

I think its a really good study for anyone working with Javascript in general or, specifically, jQuery. Sometimes being able to decompose problems into a set of patterns that you can name makes it a) easier to design and b) easier to communicate with fellow programmers.