Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
Unlearn Object Oriented Programming (if you want to learn Functional Programming) Uberto Barbini ramtop @
Slide 2
Slide 2 text
When I was a kid I wanted to become a Naturalist
Slide 3
Slide 3 text
I kept reading books about Natural Sciences
Slide 4
Slide 4 text
I kept reading books about Natural Sciences
Slide 5
Slide 5 text
I kept reading books about Natural Sciences
Slide 6
Slide 6 text
Classification was simple...
Slide 7
Slide 7 text
Then Cladistic arrived... Common ancestors
Slide 8
Slide 8 text
And birds became dinosaurs!
Slide 9
Slide 9 text
We are all fish, technically
Slide 10
Slide 10 text
Scientists are humans...
Slide 11
Slide 11 text
No content
Slide 12
Slide 12 text
https://pixabay.com/users/endriqstudio-13819715/ https://pixabay.com/users/endriqstudio-13819715/
Slide 13
Slide 13 text
It’s not easy to Unlearn
Slide 14
Slide 14 text
No content
Slide 15
Slide 15 text
https://pixabay.com/users/sasint-3639875/ https://pixabay.com/users/sasint-3639875/ Object Oriented vs Functional
Slide 16
Slide 16 text
No content
Slide 17
Slide 17 text
No content
Slide 18
Slide 18 text
No content
Slide 19
Slide 19 text
No content
Slide 20
Slide 20 text
No content
Slide 21
Slide 21 text
No content
Slide 22
Slide 22 text
Thou Shalt Have No Manager Class
Slide 23
Slide 23 text
No content
Slide 24
Slide 24 text
No content
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
Credits https://pixabay.com/users/sasint-3639875/ Credits https://pixabay.com/users/sasint-3639875/ The Elephant in the room
Slide 29
Slide 29 text
No content
Slide 30
Slide 30 text
Object-Oriented Functional
Slide 31
Slide 31 text
Url Shortener
Slide 32
Slide 32 text
Url Shortener
Slide 33
Slide 33 text
Unlearn What seems What seems wrong wrong but it’s but it’s right right? ? What seems What seems right right but it’s but it’s wrong wrong? ?
Slide 34
Slide 34 text
No content
Slide 35
Slide 35 text
Well Defined Types
Slide 36
Slide 36 text
No content
Slide 37
Slide 37 text
Generics are Type builders
Slide 38
Slide 38 text
No content
Slide 39
Slide 39 text
Anemic Objects Immutable Data
Slide 40
Slide 40 text
No content
Slide 41
Slide 41 text
Don’t use Exceptions as result
Slide 42
Slide 42 text
No content
Slide 43
Slide 43 text
Side effects should be left out
Slide 44
Slide 44 text
No content
Slide 45
Slide 45 text
Function types instead of Interfaces
Slide 46
Slide 46 text
No content
Slide 47
Slide 47 text
Which Language or Library should I use?
Slide 48
Slide 48 text
The ones that spark joy!
Slide 49
Slide 49 text
Where should I start in an existing Legacy Project?
Slide 50
Slide 50 text
https://pixabay.com/users/1588877-1588877/ Small changes
Slide 51
Slide 51 text
No content
Slide 52
Slide 52 text
Unlearn is difficult Functional Programming is made of Arrows Look at your code with new eyes (plus we are fish)
Slide 53
Slide 53 text
Excuses to avoid learning FP: It’s just a bunch of funny words I don’t have time What’s the point?
Slide 54
Slide 54 text
Tell me your Questions! Uberto Barbini @ramtop Blog https://medium.com/@ramtop Book: https://tinyurl.com/funkotlinbook