PharoDAYS 2015: Using Spec to Build a UI by Johan Fabry

34
Using Spec to Build a UI Benjamin Van Ryseghem, Stephane Ducasse, Johan Fabry

Transcript of PharoDAYS 2015: Using Spec to Build a UI by Johan Fabry

 Using Specto 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

26

Selfish

Cooperative

27

28

Their place

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