Slide 1

Slide 1 text

Modern data transfer in Android Denis Aleksandrov, Arcadia

Slide 2

Slide 2 text

About me 3 years legacy 5 years enterprise 2+ years outsource 1+ years education Leading Engineer, Lecturer

Slide 3

Slide 3 text

data transfer Repository Presenter View

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

- Nullability That hurts

Slide 6

Slide 6 text

null?

Slide 7

Slide 7 text

Integer == int? @Nullable/@NotNull everywhere?

Slide 8

Slide 8 text

It’s works!

Slide 9

Slide 9 text

- Nullability - Exceptions That hurts

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

- Nullability - Exceptions - Async calls That hurts

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

- Nullability - Exceptions - Async calls - Single format That hurts

Slide 14

Slide 14 text

Variants Call Promise Completable Callbacks Async Future Observable Livedata

Slide 15

Slide 15 text

- Nullability - Exceptions - Async calls - Single format - Thread dependencies That hurts

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

- Nullability - Exceptions - Async calls - Single format - Thread dependencies - Life cycles That hurts

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

Android dev is painful but we have new tablets

Slide 21

Slide 21 text

Android pain pills - Kotlin

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

Android pain pills - Kotlin - Coroutines

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

Async code looks like sync code

Slide 30

Slide 30 text

Lifecycle management

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

Scopes + Jobs

Slide 34

Slide 34 text

https://proandroiddev.com/kotlin-coroutine-job-hierarchy-finish-cancel-and-fail-2d3d42a768a9

Slide 35

Slide 35 text

Android pain pills - Kotlin - Coroutines - LiveData

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

Android pain pills - Kotlin - Coroutines - LiveData - Jetpack compose

Slide 38

Slide 38 text

https://blog.karumi.com/android-jetpack-compose-review/

Slide 39

Slide 39 text

Benefits - Single format - Complex details - Sync code looks like Async code - UI transfer must be auto - Less technical code, more business

Slide 40

Slide 40 text

Questions? https://t.me/guitariz github.com/d-aleksandrov