Slide 1

Slide 1 text

Maintainable Pattern Libraries @bermonpainter | Web Unleashed

Slide 2

Slide 2 text

Patterns The foundation of repeatable interactions that when combined create rich and complex systems.

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

Benefits A useful tool to use when breaking down a user interface into it’s most modular pieces, instead of thinking about things as a series of disconnected pages.

Slide 5

Slide 5 text

Benefits 1. Collaboration

Slide 6

Slide 6 text

Benefits 1. Collaboration 2. Language

Slide 7

Slide 7 text

Benefits 1. Collaboration 2. Language 3. Consistency

Slide 8

Slide 8 text

Benefits 1. Collaboration 2. Language 3. Consistency 4. Efficiency

Slide 9

Slide 9 text

Benefits 1. Collaboration 2. Language 3. Consistency 4. Efficiency 5. Speed

Slide 10

Slide 10 text

Benefits 1. Collaboration 2. Language 3. Consistency 4. Efficiency 5. Speed 6. Maintainability

Slide 11

Slide 11 text

Static Style Guides Built with (or generated) static HTML. They are standalone representations of modules that are build separately from your applications.

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

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

Living Style Guides Generated HTML, typically created from parsing documentation created as comments in CSS files.

Slide 19

Slide 19 text

No content

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

Challenges You’ve implemented a living style guide. Now what? It’s difficult it is to get buy-in, train teams, maintain the codebase between the pattern library and one or more applications, deal with technical debt, etc.

Slide 24

Slide 24 text

Challenges Adoption If the people that manage the money don’t see or understand the value in a pattern library, the won’t dedicate the time, resources, and budget to maintain one.

Slide 25

Slide 25 text

Challenges Governance Loose collaboration will fail. The must be a framework that clearly defines roles, responsibilities, and who have the authority to make decisions and provide a clear direction to the team.

Slide 26

Slide 26 text

Challenges Governance 1. Strategy: who determines the overall strategy 2. Policy: who determines what the team must and must not do 3. Standards: who decides the nature of the pattern library

Slide 27

Slide 27 text

Challenges Application The entire team must be on board on writing patterns, following code standards, and maintaining the patterns.

Slide 28

Slide 28 text

Challenges Duplication of HTML With a static or living style guide and application you have 2x the maintenance. Each additional application increases the amount of work it takes to maintain and increases technical debt.

Slide 29

Slide 29 text

Module Anatomy Focus on implementing modules as a “single source of truth” to be used across multiple application, without relying on copy/paste.

Slide 30

Slide 30 text

.css Function & Unit Tests .html .js .coffee .sass .slim 1. Responsive 2. Accessible 3. Versioned 4. Managed Dependencies Module

Slide 31

Slide 31 text

.css Function & Unit Tests .html .js .coffee .sass .slim Pattern Library

Slide 32

Slide 32 text

.css Function & Unit Tests .html .js .coffee .sass .slim Pattern Library Application

Slide 33

Slide 33 text

.css Function & Unit Tests .html .js .coffee .sass .slim Pattern Library Applications

Slide 34

Slide 34 text

API: Source of Truth

Slide 35

Slide 35 text

PATTERN API PATTERN LIBRARY APP DATA

Slide 36

Slide 36 text

Calling the API

Slide 37

Slide 37 text

= module(“navigation/horizontal”, “api/primary-nav-links”, { label: primary-nav-links.href, link: primary-nav-links.href });

Slide 38

Slide 38 text

Slide 39

Slide 39 text

Creating Pages 1. Elements (base elements, like Normalize)

Slide 40

Slide 40 text

Creating Pages 1. Elements (base elements, like Normalize) 2. Modules (combination of elements)

Slide 41

Slide 41 text

Creating Pages 1. Elements (base elements, like Normalize) 2. Modules (combination of elements) 3. Theme (look and feel specific to an application)

Slide 42

Slide 42 text

Creating Pages 1. Elements (base elements, like Normalize) 2. Modules (combination of elements) 3. Theme (look and feel specific to an application) 4. Layout (combination of elements, modules, theme)

Slide 43

Slide 43 text

Creating Pages 1. Elements (base elements, like Normalize) 2. Modules (combination of elements) 3. Theme (look and feel specific to an application) 4. Layout (combination of elements, modules, theme) 5. Page (generated output served to the client)

Slide 44

Slide 44 text

Conclusion

Slide 45

Slide 45 text

Fin.