This is usually where I start discussing literature
Slide 7
Slide 7 text
But instead of reading last weekend I decided to go on a roadtrip
Slide 8
Slide 8 text
I drove south with O’Reilly author @maccman
Slide 9
Slide 9 text
No content
Slide 10
Slide 10 text
We had the best intentions
Slide 11
Slide 11 text
No content
Slide 12
Slide 12 text
So...we were in Disneyland
Slide 13
Slide 13 text
And I was asked to talk about bootstrap
Slide 14
Slide 14 text
One theme really stood out at Disneyland
Slide 15
Slide 15 text
The importance of perception
Slide 16
Slide 16 text
Forced Perspective, Sound Engineering, etc.
Slide 17
Slide 17 text
What is the perception of Bootstrap?
Slide 18
Slide 18 text
And is this what it should be?
Slide 19
Slide 19 text
Bootstrap is a glorified stylesheet and html template
Slide 20
Slide 20 text
A little history
Slide 21
Slide 21 text
9 months ago our first public release
Slide 22
Slide 22 text
No content
Slide 23
Slide 23 text
A library for kickstarting CSS
Slide 24
Slide 24 text
People loved it
Slide 25
Slide 25 text
Really only had a single css asset
Slide 26
Slide 26 text
I loved it
Slide 27
Slide 27 text
29 days later 1.3 is released
Slide 28
Slide 28 text
We add 7 js plugins
Slide 29
Slide 29 text
I was afraid this was a huge mistake
Slide 30
Slide 30 text
No content
Slide 31
Slide 31 text
Bootstrap still fundamentally a CSS library
Slide 32
Slide 32 text
JS was provided as the “minimum” required to get you started
Slide 33
Slide 33 text
But a pretty classical approach to writing plugins
Slide 34
Slide 34 text
this bothered me
Slide 35
Slide 35 text
3 months later we began work for our 2.0 release
Slide 36
Slide 36 text
Hooray a chance to change all the things! \o/
Slide 37
Slide 37 text
Complete rewrite of all the plugins plus add some new ones
Slide 38
Slide 38 text
total of 12 plugins alert button carousel collapse dropdown
modal popover scrollspy tab tooltip transitions typeahead
Slide 39
Slide 39 text
remove features and options aggressively
Slide 40
Slide 40 text
Promote the data- api as a first class api
Slide 41
Slide 41 text
This is a fundamentally different approach to existing ui-toolkits
Slide 42
Slide 42 text
JS api going forward to be a second class citizen
Slide 43
Slide 43 text
why? better separation of form and function
Slide 44
Slide 44 text
why? harder for beginners to get in trouble
Slide 45
Slide 45 text
why? less memory intensive
Slide 46
Slide 46 text
why? great for server-side rendering
Slide 47
Slide 47 text
Data api looks like this:
data-{{verb}}={{plugin}} - defines main interaction
data-target || href^=# - defines target (optional)
data-{{option}} - defines class instance options