Using Spec to Build a UI Benjamin Van Ryseghem, Stephane Ducasse, Johan Fabry
What is it for? 2
3
Reuse is key 4
5
6
7
8
Every UI is reusable by default 9
10
Let’s build a UI 11
12
13
14
Three things about widgets 15
• Widgets are selfish • Widgets are cooperative • Widgets know their place in society 16
Selfish 17
Cooperative 18
Their place (… which is very classy …) 19
That’s all, folks! 20
Reuse! 21
22
23
24
25
Selfish 26
Cooperative 27
Their place 28
That’s all, folks! 29
Remember 30
Reuse is key 31
32
• Widgets are selfish initializeWidgets ➡ • Widgets are cooperative initializePresenter ➡ • Widgets know their place in society <spec: #default> ➡ 33
Use the source, dude! 34
Recommend
More recommend