10 Things I Learned from the jQuery Source

Channel:Paul Irish · Length:53:40 · Published:2010-06-14 · Views:125190

Watch on YouTube

Summary

Paul Irish walks through the jQuery source code and shares ten lessons and interesting techniques from it, aimed at JavaScript developers who want to learn from a widely used library.

Why HN recommends it

A classic recommendation among JavaScript talks and for reading real library code to learn patterns.

There is also a great presentation by Paul Irish — HN, 2011

Web development · Software practice, open source & careers

Subtitles (excerpt)

hello and welcome uh I'd like to uh share with you 10 things I learned from the jQuery Source now these will be things um about jQuery shortcuts internals how it actually works but also a little bit of just techniques that are used internally that are kind of Library agnostic and you can use in your own development of JavaScript applications or or even or specifically jQuery applications um well let's just get into it okay um I mean the first thing that I want to just bring up is that for a long time I mean everyone has this point in their development with J Cory I wish they consider J Cory this black box and this black box is this magical box that just works has this great API we use it we don't have to worry about how it actually works internally we're not going to look inside the source and figure it out but I'm here to say if you do I think I think you're going to benefit from it and so um well let's do it let's just do it we're going to dig into it all right bump this font size up but we're going to take a look over here so what I have up here is this is the jQuery uh 1.4.2 Source uh um and starting right at the top uh we got this little guy so it's a it's a function definition but but we see that it has a PN right before it

On Hacker News

If you are fronted web developer then you should defenitely read jQuery sources. There is a lot of patterns that you could borrow and reuse in your own JS libraries. A good place to start is this interactive code viewer: [LINK] There is also a great presentation by Paul Irish ("10 Things I Learned from the jQuery Source"): [VIDEO] — jarek-foksa, 2011-04
Take a look at this. [VIDEO] This is Paul Irish giving a breakdown of interesting bits about jQuery. He talks about this technique roughly 50 minutes in. — geuis, 2011-04
I found these videos by Paul Irish very interesting too: 10 Things I Learned from the jQuery Source : [VIDEO] 11 more Things I Learned from the jQuery Source : [LINK] — niyazpk, 2011-02
Classics John Resig : The Dom is a mess [LINK] Javascript, The Good Parts [LINK] Speed up your Javascript [LINK] Brendan Eich : Fluent 2013: Brendan Eich, "JavaScript at 18: Legal to Gamble" [LINK] Paul Irish : 10 things I learned from the Jquery source [VIDEO] Less known but very interesting Building High-Performing JavaScript for Modern Engines [LINK] — tangue, 2014-01

Related videos