Slide 1

Slide 1 text

Making Good Decisions About Javascript Dependencies Radoslav Stankov 01/08/2019

Slide 2

Slide 2 text

Radoslav Stankov @rstankov http://rstankov.com http://github.com/rstankov

Slide 3

Slide 3 text

https://speakerdeck.com/rstankov

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

...imagine starting a new project !

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

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

" JavaScript Fatigue

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

What framework to use? How to manage state? How to fetch data? Which router to use? Which calendar component to use? Which chart component to use?
 ... #

Slide 19

Slide 19 text

Agenda

Slide 20

Slide 20 text

$ Dependency types % Picking dependencies

Slide 21

Slide 21 text

Dependency types

Slide 22

Slide 22 text

Medium easy
 to change Big Medium Small Medium Small Small Small Small Small hard to change simple complex * totally unscientific chart &

Slide 23

Slide 23 text

Medium easy
 to change Big Medium Small Medium Small Small Small Small Small hard to change simple complex * totally unscientific chart &

Slide 24

Slide 24 text

What framework to use? How to manage state? How to fetch data? Which router to use? Which calendar component to use? Which chart component to use?
 ... #

Slide 25

Slide 25 text

What framework to use? How to manage state? How to fetch data? Which router to use? Which calendar component to use? Which chart component to use?
 ... #

Slide 26

Slide 26 text

What ecosystem to choose? How to manage state? How to fetch data? Which router to use? Which calendar component use? Which chart component use?
 ... #

Slide 27

Slide 27 text

What ecosystem to choose? How to manage state? How to fetch data? Which router to use? Which calendar component use? Which chart component use?
 ... #

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

History of JS Ecosystem

Slide 30

Slide 30 text

History of JS Ecosystem 2005

Slide 31

Slide 31 text

History of JS Ecosystem 2005 2006

Slide 32

Slide 32 text

History of JS Ecosystem 2005 2010 2006

Slide 33

Slide 33 text

History of JS Ecosystem 2005 2010 2006

Slide 34

Slide 34 text

History of JS Ecosystem 2005 2013 2010 2006

Slide 35

Slide 35 text

History of JS Ecosystem 2005 2019 2013 2010 2006

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

What ecosystem to choose? How to manage state? How to fetch data? Which router to use? Which calendar component use? Which chart component use?
 ... #

Slide 40

Slide 40 text

What ecosystem to choose? How to manage state? How to fetch data? Which router to use? Which calendar component use? Which chart component use?
 ... #

Slide 41

Slide 41 text

Medium easy
 to change Big Medium Small Medium Small Small Small Small Small hard to change simple complex * totally unscientific chart &

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

History of React Ecosystem 2013 2019

Slide 45

Slide 45 text

History of React Ecosystem 2013 2019 2014

Slide 46

Slide 46 text

History of React Ecosystem 2013 2019 2014 2015

Slide 47

Slide 47 text

History of React Ecosystem 2013 2019 2014 2015

Slide 48

Slide 48 text

History of React Ecosystem 2013 2019 2014 2015 2016

Slide 49

Slide 49 text

History of React Ecosystem 2013 2019 2014 2015 2016 Concepts

Slide 50

Slide 50 text

History of React Ecosystem 2013 2019 2014 2015 2016 Libraries

Slide 51

Slide 51 text

History of React Ecosystem 2013 2019 2014 2015 2016

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

What ecosystem to choose? How to manage state? How to fetch data? Which router to use? Which calendar component use? Which chart component use?
 ... #

Slide 55

Slide 55 text

Medium easy
 to change Big Medium Small Medium Small Small Small Small Small hard to change simple complex * totally unscientific chart &

Slide 56

Slide 56 text

Picking Dependencies

Slide 57

Slide 57 text

⏹ Do we really need it? ⏹ Can something we already have do the task we are searching for? ⏹ Can we implement this ourselves? ⏹ Is this properly maintained? ⏹ Is it well documented? ⏹ When was the last version? ⏹ When was the last commit? ⏹ How often does it get a new version? ⏹ Does it have CHANGELOG? ⏹ Were there breaking changes recently? ⏹ Does it have security issues past or present? ⏹ How many dependencies does it come from? ⏹ What the dependency size? ⏹ What is its license? ⏹ Do you use this in any other project? ✅ Questions

Slide 58

Slide 58 text

https://www.npmjs.com/package/lodash

Slide 59

Slide 59 text

https://www.npmjs.com/package/lodash

Slide 60

Slide 60 text

https://www.npmjs.com/package/draft-js

Slide 61

Slide 61 text

https://github.com/facebook/draft-js

Slide 62

Slide 62 text

https://github.com/facebook/draft-js/issues

Slide 63

Slide 63 text

http://npm.broofa.com/?q=draft-js

Slide 64

Slide 64 text

https://bundlephobia.com/[email protected]

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

Thanks )

Slide 69

Slide 69 text

https://speakerdeck.com/rstankov