Slide 1

Slide 1 text

@ ythecombinator #BEPiD playing with Watch Connectivity for ~24 hours

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

OUR GOAL an app where you access all of the most awaited event of the year: the COCOAHEADS CONFERENCE 2016; with information about the venue, speakers, schedule, sponsors, partners... (and during the event, you can even tweet about the talks!)

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

OUR GOAL an app where you access all of the most awaited event of the year: the COCOAHEADS CONFERENCE 2016; with information about the venue, speakers, programming, sponsors, partners... (and during the event, you can even tweet about the talks!) ~24 hours

Slide 6

Slide 6 text

OUR STACK JSON Watch Connectivity

Slide 7

Slide 7 text

DIFFICULTIES & LESSONS LEARNT

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

SERVER JSON Watch Connectivity

Slide 10

Slide 10 text

#1 we all must have a quick back-end for prototyping

Slide 11

Slide 11 text

https:// github.com/ typicode/ json- server

Slide 12

Slide 12 text

https:// www.get post man .com

Slide 13

Slide 13 text

iOS JSON Watch Connectivity

Slide 14

Slide 14 text

#1 Alamofire + SwiftyJSON =

Slide 15

Slide 15 text

#2 you must keep as much processing as possible here

Slide 16

Slide 16 text

#3 you must keep as much depende ncies as possible here

Slide 17

Slide 17 text

watchOS JSON Watch Connectivity

Slide 18

Slide 18 text

#1 the simulator makes you forget that you can rely on an awful connecti on

Slide 19

Slide 19 text

the simulator adds some latency to the requests but response times on-device can sometimes be quite slower !

Slide 20

Slide 20 text

#2 optimize your design for a constrai ned as f*ck screen

Slide 21

Slide 21 text

#3 I can just update my views as often as I want

Slide 22

Slide 22 text

#1 the simulator makes you forget that you can rely on an awful connecti on DON’T YOU FORGET THIS

Slide 23

Slide 23 text

#4 keep all session data in a single class

Slide 24

Slide 24 text

#5 think very well about message -passing strategy

Slide 25

Slide 25 text

#6 think very well about devices states handling

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

THINK ABOUT & EXPERIMENT

Slide 28

Slide 28 text

Activity Rings

Slide 29

Slide 29 text

PROMISES

Slide 30

Slide 30 text

Functional- Reactive- Programming

Slide 31

Slide 31 text

NSURLSession

Slide 32

Slide 32 text

AND SO…

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

✓ Watch Connectivity × Complications

Slide 38

Slide 38 text

'Que Deus tenha misericórdia deste App'

Slide 39

Slide 39 text

SORRY! (not that sorry)