开发者

Want to know the base level (not the basics) architecture of the JavaScript [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago.

I am having a good knowledge of JavaScript, I have a passion to know more and in-depth about it. So I am start searching for the base or structural lev开发者_JS百科el and also various concept like event delegate, event bubbling etc. is there is any resource for it?


I can think of two.

Douglas Crockford's javascript page is full of awesome knowledge pearls about the language (both basics and advanced stuff).

The Secrets of the Javascript Ninja book is an advanced resource. It's written by John Resig, the guy bejind jquery. It's still not out, but if you pre-buy it you have access to the beta editions (a new one popped out 2 weeks ago)


One of my favorite resources is Douglas Crockford's series of videos on Javascript: http://javascript.crockford.com/

He gives you a whole history lesson wrapped up into practical usage that explains the how and why the system works. Beyond that, check out the resources that John Resig has available on his blog (the creator of JQuery, a very popular Javascript library): http://ejohn.org/blog/

This is a fun one after you have gone through the Crockford videos: http://ejohn.org/apps/learn/

If you can understand what both Crockford and Resig discuss, you'll be able to handle just about any problem JS can throw at you.


I think quirksmode.org has a very good introduction to events:

  • Introducation
  • Event Order
  • Early event handlers
  • Traditional event registration model
  • Advanced event registration models
  • Event properties
  • Event compatibility tables

Then of course there is MDC JavaScript Guide and various books such as

  • High Performance JavaScript
  • JavaScript Patterns


To really get stuck into the architecture of javascript you should have a good thorough read of the Specification.

The specification will let you have a better understanding of the internals of JavaScript and gives an insight into how things work under the hood. You may also get a feeling for what non-standard parts of javascript you've been accidentally using.

Another route to getting a better understanding would be to read well known and (hopefully) well structured open source libraries.

Reading such libraries is a great way to learn javascript design patterns and how to utilise various parts to the maximum effect.

A third, (and significantly more advance) option would be to read the open source implementation of chrome.

This would give you an understanding of the low level implentation of javascript. You know exactly what the interpreter is doing with your code under the hood.

If your interested in the DOM more then JavaScript itself you can always read the HTML5 spec

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜