10 Things I Learned from the jQuery Source
Channel:Paul Irish · Length:53:40 · Published:2010-06-14 · Views:125190
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
- What the heck is the event loop anyway? | Philip Roberts | JSConf EU · JSConf · 26:52
- Rich Harris - Rethinking reactivity · You Gotta Love Frontend · 36:45
- 🚀 TDD, Where Did It All Go Wrong (Ian Cooper) · DevTernity Conference · 1:03:55
- Bret Victor The Future of Programming · Joey Reid · 32:55
- Crockford on JavaScript - Volume 1: The Early Years · YUI Library · 1:42:08
- RailsConf 2016 - Turbolinks 5: I Can’t Believe It’s Not Native! by Sam Stephenson · Confreaks · 37:37
- "Uncle" Bob Martin - "The Future of Programming" · Paul Stringer's Mobile Tech · 1:18:21
- JavaScript: The Good Parts · Google TechTalks · 1:03:47
- Tim Ewald - Clojure: Programming with Hand Tools · ClojureTV · 58:39
- Using Python to Code by Voice · Next Day Video · 28:17
- Transforming Code into Beautiful, Idiomatic Python · Next Day Video · 48:51
- Agile is Dead • Pragmatic Dave Thomas • GOTO 2015 · GOTO Conferences · 40:39
- Pete Hunt: React: Rethinking best practices -- JSConf EU · JSConf · 29:31
- Dan Abramov - Live React: Hot Reloading with Time Travel at react-europe 2015 · ReactEurope · 30:40
- Plover: Thought to Text at 240 WPM · Next Day Video · 34:21
- "The Economics of Programming Languages" by Evan Czaplicki (Strange Loop 2023) · Strange Loop Conference · 43:57