JavaScript design patterns
JavascriptDesign PatternsJavascript Problem Overview
This is a question for general discussion. Are there any good, comprehensive resources for useful JavaScript design patterns. I am trying to avoid references that attempt to coerce JavaScript into, say, Java by imposing patterns more suited to another language. Let's let JS be JS and shape our patterns around the strengths.
Please any discussion would be valued by more than just me, I suspect.
Javascript Solutions
Solution 1 - Javascript
Here's an on-line resource:
Solution 2 - Javascript
Here's a good one:
http://oreilly.com/catalog/9780596517748"><img src="https://covers.oreilly.com/images/9780596517748/cat.gif" />
Solution 3 - Javascript
This is an awesome book by O'Reilly. It builds on their "JavaScript: The Good Parts".
It references a lot of the patterns mentioned in the "Gang of Four" book and notes a lot of the problems solved in that book are trivial to solve with JavaScript.
Solution 4 - Javascript
APress has a book called "Pro Javascript Design Patterns" that is probably just what you're looking for. While the author (Diaz Harmes) is certainly not "the gang of four", I think he does a pretty good job; I know I learned quite a bit from it (and it got 4.5 stars on Amazon).
Amazon link: http://www.amazon.com/JavaScript-Design-Patterns-Recipes-Problem-Solution/dp/159059908X
Solution 5 - Javascript
I'm not sure why no one has listed this, but Addy Osmani's JavaScript design pattern book is fantastic and freely available online. He really digs deep to show you the nuts and bolts of each pattern.
http://addyosmani.com/resources/essentialjsdesignpatterns/book/
Solution 6 - Javascript
-
Peter Michaux has some decent articles
-
Also see Crockford's articles (and his book)
-
A new book on the subject by Stoyan Stefanov: Object-Oriented JavaScript: Create scalable, reusable high-quality JavaScript applications and libraries
Solution 7 - Javascript
This is one of the best design patterns resources I've found for JavaScript http://shichuan.github.com/javascript-patterns/
It's aimed for JavaScript as we know and not necessarily trying only use concepts of other languages.