什么是好的JavaScript OOP资源? [英] What are good JavaScript OOP resources?
问题描述
JavaScript是一种轻量级和强大的语言,但它经常被误解和难以学习(尤其是面向对象的编程)。
学习JavaScript OOP的好材料(博客,屏幕录像和书籍)是什么?
此外,你是如何学习函数式编程,闭包,对象,继承和设计模式的。这些主题可以是任何东西,但现在不包括浏览器,AJAX和库。在JavaScript?个人我想看到更多的代码示例,因为我上面提到的一些书保持了这个例子最小。
(编辑: ,请帮助维护并开发以下资源列表!)
图书 >
- JavaScript:好的零件 by Douglas Crockfond,这是大多数Javascripters在堆栈溢出时推荐的书。我观察到,人们已经提高了他们的技能在java脚本与这本书。访问他的网站: crockford.com 了解详情。
- < a href =http://rads.stackoverflow.com/amzn/click/1847194141 =nofollow noreferrer>面向对象的JavaScript:创建可扩展的,可重复使用的高质量JavaScript应用程序和库 Stoyan Stefanov ,经历了许多OOP主题,例如对象,原型,继承和一些模式。
- Pro JavaScript Design Patterns ,由Ross Harmess和Dustin Diaz讨论,着名的设计模式在JavaScript中的应用。
视频
- 高级JavaScript视频 by Douglas Crockford。许多其他有趣的视频可以在 Yahoo!开发人员网络。
堆栈溢出
其他
/ en / Introduction_to_Object-Oriented_JavaScriptrel =nofollow noreferrer>面向对象JavaScript简介 - Mozilla Dev您可以在主流图书馆中看到很好的代码示例,比如 jQuery 。我学到了很多只是阅读它的源代码。没有什么比阅读在数百万网站上工作的来源更好,并且关注最佳做法。
JavaScript is a lightweight and powerful language, but it's often misunderstood and hard to learn (especially about its object oriented programming).
What are the good materials (blogs, screencasts and books) to learn JavaScript OOP? The topics can be anything, but let's not include browsers, AJAX and libraries for now.
Also how did you learn the functional programming, closure, object, inheritance and design patterns in JavaScript? Personally I would like to see more code examples because some of the books I mentioned above keep the example minimal.
(EDIT: As this post is now community effort, please help maintain and develop the following list of resources!)
Books
- JavaScript: The Good Parts by Douglas Crockfond, This is the book recommended by most of Javascripters on Stack overflow. I observed, People have advanced their skills in java script with this book. Visit his website: crockford.com for more information.
- Object-Oriented JavaScript: Create scalable, reusable high-quality JavaScript applications and libraries by Stoyan Stefanov, goes through many OOP topics such as Objects, Prototype, Inheritance and some patterns.
- Pro JavaScript Design Patterns, by Ross Harmess and Dustin Diaz, discuss application of famous design patterns in JavaScript.
Videos
- "Advanced JavaScript" videos by Douglas Crockford. Many other interesting videos are available at Yahoo! Developer Network.
- The Definitive Guide to Object-Oriented JavaScript by James Shore (July 2013).
On Stack Overflow
- A Stack Overflow discussion on JavaScript closure
- A Stack Overflow discussion on What exactly does "closure" refer to in JavaScript?
- A Stack Overflow discussion on Prototypal vs Functional OOP in JavaScript
Others
- Introduction to Object-Oriented JavaScript - Mozilla Dev
- JavaScript Closures for Dummies
- JavaScript Closures
- JavaScript Closures 101
- Private Members in JavaScript by Douglas Crockfond
- Classical Inheritance in JavaScript by by Douglas Crockfond
- Prototypal Inheritance in JavaScript by by Douglas Crockfond
- JavaScript, time to grok closures
You can see great code examples of Javascript in mainstream libraries like jQuery. I've learned a lot just reading it's source code. There's nothing better than reading sources that are working in millions of websites and are concerned about best practices.
这篇关于什么是好的JavaScript OOP资源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!