Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

@Jack_Franklin pusher.com javascriptplayground.com

Slide 3

Slide 3 text

Finally, I announced my second new release of the evening: jQuery: New Wave Javascript. In a nutshell, this code revolutionizes the way you can get Javascript to interact with HTML John Resig, Jan 16, 2006 http://ejohn.org/blog/barcampnyc-wrap-up/

Slide 4

Slide 4 text

http://genius.it/5088474/ejohn.org/files/jquery-original.html

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

https://www.flickr.com/photos/donlunzo16/13108762695/

Slide 7

Slide 7 text

IE 5: 5.5% IE 6: 60.3% IE 7: 0.2% FF : 25% Opera : 1.6% Netscape : 0.5% https://en.wikipedia.org/wiki/Usage_share_of_web_browsers#Net_Applications_.282004_Q4_to_present.29

Slide 8

Slide 8 text

document.getElementById() document.getElementsByTagName() elem.addEventListener elem.attachEvent

Slide 9

Slide 9 text

$()

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

https://www.flickr.com/photos/city-amsterdam/12101703396

Slide 14

Slide 14 text

https://www.flickr.com/photos/oatsy40/6715845075/

Slide 15

Slide 15 text

Trust

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

http://blog.jquery.com/2016/04/19/eslint-joins-the-jquery-foundation/

Slide 19

Slide 19 text

https://www.flickr.com/photos/yuchinmchu/2716597655

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

It bothered me that so few JavaScript libraries had documentation when I was making jQuery and I made a point to write online docs from the get-go. I’m glad I did! I’m frequently surprised by how few developers will put in the (marginal) extra effort to document their code. So many more people will be able to use and understand if you do! John Resig http://genius.it/ejohn.org/files/jquery-original.html

Slide 22

Slide 22 text

https://www.flickr.com/photos/cogdog/20431040803

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

$(…).on(‘click’, function() { }); ????

Slide 25

Slide 25 text

$(…).animate({
 opacity: 0.25
 }); ????

Slide 26

Slide 26 text

$.getJSON().then(function(data) {
 …
 }); ????

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

ancestors parents children siblings

Slide 29

Slide 29 text

http://www.paulirish.com/2010/10-things-i-learned-from-the-jquery-source/

Slide 30

Slide 30 text

jQuery is more than just a library

Slide 31

Slide 31 text

It’s a learning tool

Slide 32

Slide 32 text

from jQuery to JavaScript to CoffeeScript to Angular to React https://www.flickr.com/photos/masked-builder/4884525455

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

This website still works, 4+ years after I last touched it… And we can all understand it.

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

@N_Gular Wicked hype for Angular 2 and TypeScript !!111!!! @R_eact Use ES2018 with React today for awesome features @G_ulpulicious If you use Grunt you’re a bad person @Jack_Franklin I didn’t have breakfast this morning LOL

Slide 42

Slide 42 text

Don’t let Hacker News fool you!

Slide 43

Slide 43 text

http://youmightnotneedjquery.com/

Slide 44

Slide 44 text

At the very least, make sure you know what jQuery is doing for you, and what it's not. youmightnotneedjquery.com

Slide 45

Slide 45 text

https://docs.google.com/document/d/ 1LPaPA30bLUB_publLIMF0RlhdnPx_ePXm7oW02iiT6o/edit

Slide 46

Slide 46 text

The great thing about an established library, like jQuery, is it’s hammered on by lots of talented people, transparently improved, and refined by the community. John-David Dalton, Paul Irish https://docs.google.com/document/d/1LPaPA30bLUB_publLIMF0RlhdnPx_ePXm7oW02iiT6o/edit

Slide 47

Slide 47 text

You can check how many bugs jQuery is covering for you

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

jQuery 2.2.3 has 99 cross browser edge cases / bugs that it deals with

Slide 51

Slide 51 text

curl https://code.jquery.com/ jquery-2.2.3.js | grep -n Support:

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

And even if you argue that most of those bugs are edge case / won’t impact you…

Slide 54

Slide 54 text

jQuery is often easier.

Slide 55

Slide 55 text

$ = document.querySelectorAll

Slide 56

Slide 56 text

If jQuery is “dying”, it’s the one with the sword. https://www.flickr.com/photos/albioneurope/8496569594

Slide 57

Slide 57 text

document.querySelectorAll classList Promise

Slide 58

Slide 58 text

Not every website you build will even need JavaScript

Slide 59

Slide 59 text

Some might need a tiny bit, and you’ll decide it’s not worth adding jQuery just for a little piece of code

Slide 60

Slide 60 text

Another website will be much more complex and require something like React / Angular

Slide 61

Slide 61 text

Something else might only need the tip top latest browser support, and you’re happy writing vanilla JS

Slide 62

Slide 62 text

But just sometimes you’ll need a little bit of a hand, or reliable X-Browser support, and jQuery is still a great option.

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

Sara’s not the only one…

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

jQuery is still keeping the barrier low for those new to the web

Slide 68

Slide 68 text

jQuery is still providing a great API and X-Browser solution for those with projects that fit it

Slide 69

Slide 69 text

jQuery is not a solution for every problem, and nor should it be.

Slide 70

Slide 70 text

jQuery is still providing a great community that brings people together (like us)

Slide 71

Slide 71 text

Thanks. @Jack_Franklin