开发者

JavaScript design patterns [closed]

开发者 https://www.devze.com 2023-01-06 08:13 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this
Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 8 years ago.

Improve this question

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.


Here's an on-line resource:

Essential JavaScript Design Patterns For Beginners


Here's a good one:

JavaScript design patterns [closed]


This is an awesome book by O'Reilly. It builds on their "JavaScript: The Good Parts".

JavaScript design patterns [closed]

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.


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

JavaScript design patterns [closed]


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/


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.


  • 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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号