Slide 1

Slide 1 text

TAKING YOUR PATTERN LIBRARY TO THE NEXT LEVEL David Furnes @dfurnes TAKING YOUR PATTERN LIBRARY TO THE NEXT LEVEL Image Credit: NASA your pattern library

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

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

No content

Slide 14

Slide 14 text

It’s a _______________ __________: built using ___, distributed as an _________, documented using ___, and published on ___________.

Slide 15

Slide 15 text

It’s a library of interface components: built using ___, distributed as an _________, documented using ___, and published on ___________.

Slide 16

Slide 16 text

It’s a library of interface components: built using Sass, distributed as an _________, documented using ___, and published on ___________.

Slide 17

Slide 17 text

It’s a library of interface components: built using Sass, distributed as an npm module, documented using ___, and published on ___________.

Slide 18

Slide 18 text

It’s a library of interface components: built using Sass, distributed as an npm module, documented using KSS, and published on ___________.

Slide 19

Slide 19 text

It’s a library of interface components: built using Sass, distributed as an npm module, documented using KSS, and published on GitHub Pages.

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

.figure.-left

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

6.6.2

Slide 27

Slide 27 text

^6.6.0 ^6.5.0 ^5.0.0

Slide 28

Slide 28 text

6.6.2 6.6.2 5.3.4

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

PROCESS PROCESS YOUR OWN TOOLKIT YOUR OWN TOOLKIT THE FUTURE THE FUTURE

Slide 32

Slide 32 text

PROCESS PROCESS

Slide 33

Slide 33 text

PROCESS Make development easier.

Slide 34

Slide 34 text

PNC Bank buttons, courtesy of Brad Frost http://bradfrost.com/blog/post/interface-inventory/

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

PROCESS Make design easier.

Slide 37

Slide 37 text

PROCESS Mocks suck.

Slide 38

Slide 38 text

PROCESS

Slide 39

Slide 39 text

PROCESS Make talking about design easier.

Slide 40

Slide 40 text

PROCESS It’s like an API for your style sheets.

Slide 41

Slide 41 text

PROCESS Make on boarding easier.

Slide 42

Slide 42 text

Your pattern library is a tool for building a healthy process.

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

YOUR OWN TOOLKIT YOUR OWN TOOLKIT

Slide 45

Slide 45 text

YOUR OWN TOOLKIT Build your own Bootstrap.

Slide 46

Slide 46 text

YOUR OWN TOOLKIT Your Project Complexity Project Size

Slide 47

Slide 47 text

YOUR OWN TOOLKIT Handle complexity over time.

Slide 48

Slide 48 text

YOUR OWN TOOLKIT DRY SOLID KISS YAGNI

Slide 49

Slide 49 text

DRY SOLID KISS YAGNI Don’t repeat yourself.

Slide 50

Slide 50 text

DRY SOLID KISS YAGNI You Ain’t Gonna Need It

Slide 51

Slide 51 text

SOLID DRY SOLID KISS YAGNI

Slide 52

Slide 52 text

DRY SOLID KISS YAGNI Single Responsibility Principle

Slide 53

Slide 53 text

YOUR OWN TOOLKIT SINGLE RESPONSIBILITY PRINCIPLE "The single responsibility principle states that every class should have a single responsibility, and that responsibility should be entirely encapsulated by the class.”

Slide 54

Slide 54 text

YOUR OWN TOOLKIT SINGLE RESPONSIBILITY PRINCIPLE Identify responsibility. 1

Slide 55

Slide 55 text

YOUR OWN TOOLKIT SINGLE RESPONSIBILITY PRINCIPLE Identify responsibility. 1 The media object is responsible for layout.

Slide 56

Slide 56 text

YOUR OWN TOOLKIT SINGLE RESPONSIBILITY PRINCIPLE Separate responsibilities. 2

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

Slide 59

Slide 59 text

{…} {…} {…}

Slide 60

Slide 60 text

{…figures}

Slide 61

Slide 61 text

{…figures}

Slide 62

Slide 62 text

Slide 63

Slide 63 text

YOUR OWN TOOLKIT GTFO

Get the filter out! Clean up cigarette butt litter.

Prove It #TheSexiestWords

Share the hottest ways to ask for consent without killing the mood.

Prove It

Slide 64

Slide 64 text

YOUR OWN TOOLKIT SINGLE RESPONSIBILITY PRINCIPLE Compose. 3

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

Slide 67

Slide 67 text

{…tiles}

Slide 68

Slide 68 text

Slide 69

Slide 69 text

YOUR OWN TOOLKIT

Slide 70

Slide 70 text

Build less, but better things.

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

THE FUTURE THE FUTURE

Slide 73

Slide 73 text

THE FUTURE IS NOW THE FUTURE IS NOW

Slide 74

Slide 74 text

THE FUTURE IS NOW React

Slide 75

Slide 75 text

THE FUTURE IS NOW "React is all about building reusable components. In fact, with React the only thing you do is build components. Since they're so encapsulated, components make code reuse, testing, and separation of concerns easy." – “Why React”, http://facebook.github.io/react/docs/why-react.html

Slide 76

Slide 76 text

THE FUTURE IS NOW Build components, not pages.

Slide 77

Slide 77 text

THE FUTURE IS NOW

Slide 78

Slide 78 text

THE FUTURE IS NOW
Hello, Full-Stack Engineers!
Hello, Full-Stack Engineers!

Slide 79

Slide 79 text

THE FUTURE IS NOW
Hello, Full-Stack Engineers!
⚠ Required ‘image’ was not supplied in Figure. Hello, Full-Stack Engineers!

Slide 80

Slide 80 text

THE FUTURE IS NOW Modules w/ dependencies Compiled bundles Webpack MODULE BUNDLER

Slide 81

Slide 81 text

THE FUTURE IS NOW

Slide 82

Slide 82 text

THE FUTURE IS NOW

Slide 83

Slide 83 text

THE FUTURE IS NOW Build documentation into your components.

Slide 84

Slide 84 text

THE FUTURE IS NOW Example Button Button.propTypes = { kind: PropTypes.oneOf(Object.keys(styles)) };

Slide 85

Slide 85 text

THE FUTURE IS NOW Example Button Button.propTypes = { kind: PropTypes.oneOf([‘base’, ‘primary’, ‘secondary’]) };

Slide 86

Slide 86 text

THE FUTURE IS NOW Example Button Button.propTypes = { kind: PropTypes.oneOf([‘base’, ‘primary’, ‘secondary’]) };

Slide 87

Slide 87 text

THE FUTURE IS NOW ⚠ Warning Example Button Button.propTypes = { kind: PropTypes.oneOf([‘base’, ‘primary’, ‘secondary’]) };

Slide 88

Slide 88 text

THE FUTURE IS NOW Example Button Example Button

Slide 89

Slide 89 text

THE FUTURE IS NOW http://dfurn.es/css-modules

Slide 90

Slide 90 text

THE FUTURE IS NOW

Slide 91

Slide 91 text

THE FUTURE IS NOW Web Components

Slide 92

Slide 92 text

THE FUTURE IS NOW ds-button { border-radius: 4px; padding: 12px; } .primary { background: #23b7fb; font-size: 24px; } .secondary { background: #444; font-size: 18px; } document.registerElement('ds-button', { prototype: Object.create(HTMLButtonElement.prototype), extends: ‘button’, createdCallback: { value: function() { var t = document.querySelector(‘#button-template’); var clone = document.importNode(t.content, true); this.createShadowRoot().appendChild(clone); } } });

Slide 93

Slide 93 text

THE FUTURE IS NOW Example Button Example Button

Slide 94

Slide 94 text

THE FUTURE IS NOW Web Components

Slide 95

Slide 95 text

THE FUTURE IS NOW polymer-project.org

Slide 96

Slide 96 text

No content

Slide 97

Slide 97 text

Your pattern library is a tool for building a healthy process.

Slide 98

Slide 98 text

Build less, but better things.

Slide 99

Slide 99 text

Build things that help you build things.

Slide 100

Slide 100 text

David Furnes @dfurnes