What are good JavaScript OOP resources? [closed]

2019-01-12 15:26发布

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

Videos

On Stack Overflow

Others

6条回答
该账号已被封号
2楼-- · 2019-01-12 15:42

I have found this blog post to be the most clear explanation of prototypes: https://javascriptweblog.wordpress.com/2010/06/07/understanding-javascript-prototypes/

I have written a blog series on object orientation in JavaScript. You can access it here: https://rahuldotout.wordpress.com/2011/06/13/javascript-a-different-beast-part-7-inheritance-without-classes/

查看更多
老娘就宠你
3楼-- · 2019-01-12 15:43

The recent Crockford on JavaScript video talks are worth watching - Act III: Function the Ultimate covers OOP in JavaScript.

查看更多
Lonely孤独者°
4楼-- · 2019-01-12 15:43

Most of the resources you can get surfing on the internet. You can see the links googling on google. With the oops javascript code, there is no need for the developers to rewrite the code instead they can create small blocks of code. I' m listing down the resources of which I'm aware of -

https://www.quora.com/What-are-some-good-resources-for-JavaScript-OOP

http://www.c-sharpcorner.com/topics/javascript-oop

https://addyosmani.com/resources/essentialjsdesignpatterns/book/

查看更多
三岁会撩人
5楼-- · 2019-01-12 15:45

In addition to the previous references to Crockford's work, I recommend you read this perspective on the contrast of Functional vs. Classical inheritance patterns in JS:

Inheritance Patterns in JavaScript by Michael Bolin

查看更多
Melony?
6楼-- · 2019-01-12 15:53

In the same vein as The Good Parts, Douglas Crockford's website has many good articles on JavaScript and OOP, such as Prototypal Inheritance, Classical Inheritance in JavaScript, etc.

查看更多
别忘想泡老子
7楼-- · 2019-01-12 16:03

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.

查看更多
登录 后发表回答