Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Unlearn OOP (if you want to learn FP)
Search
Uberto Barbini
November 29, 2019
Programming
0
270
Unlearn OOP (if you want to learn FP)
Keynote at the Italian Kolin Community Conference 2019
Uberto Barbini
November 29, 2019
Tweet
Share
More Decks by Uberto Barbini
See All by Uberto Barbini
Earthquake and Kominka
ramtop
0
120
Let's Put the Fun Back in Functional Programming
ramtop
0
130
Error Handling and Logging in a Functional World
ramtop
0
610
Future Java: Project Valhalla LW2
ramtop
0
67
Quarkus.io + Kotlin = Supersonic Kotlin
ramtop
0
290
Microservices From The Trenches
ramtop
1
96
4 Rules of Simple Design in Functional Programming
ramtop
0
66
4 Rules of Simple Design in Functional Programming
ramtop
1
1.1k
Project Valhalla and Value Types
ramtop
0
290
Other Decks in Programming
See All in Programming
Web技術を駆使してユーザーの画面を「録画」する
yukukotani
13
6.5k
GoのIteratorに詳しくなってしまう
inatonix
1
200
『ドメイン駆動設計をはじめよう』中核の業務領域
masuda220
PRO
5
960
New Order in Cascade Sorting Order
mugi_uno
3
2.6k
僕が思い描くTypeScriptの未来を勝手に先取りする
yukukotani
9
2.3k
Amazon BedrockでサーバレスなAIお料理ボットを作成する!!
tosuri13
0
190
Jakarta EE meets AI
ivargrimstad
0
310
What we keep in mind when migrating from Serverless Framework to AWS CDK and AWS SAM
kasacchiful
1
140
A New Era of Testing
mannodermaus
2
150
dotfiles について話したい #湘なんか
stefafafan
2
290
メモリ最適化を究める!iOSアプリ開発における5つの重要なポイント
yhirakawa333
0
400
令和トラベルにおけるLLM活用事例:社内ツール開発から得た学びと実践
ippo012
0
120
Featured
See All Featured
Code Review Best Practice
trishagee
62
16k
How STYLIGHT went responsive
nonsquared
93
5.1k
How to Think Like a Performance Engineer
csswizardry
16
940
Visualization
eitanlees
142
15k
Building Adaptive Systems
keathley
36
2.1k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
25
1.3k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
190
16k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
363
22k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
GraphQLとの向き合い方2022年版
quramy
43
13k
Debugging Ruby Performance
tmm1
72
12k
Transcript
Unlearn Object Oriented Programming (if you want to learn Functional
Programming) Uberto Barbini ramtop @
When I was a kid I wanted to become a
Naturalist
I kept reading books about Natural Sciences
I kept reading books about Natural Sciences
I kept reading books about Natural Sciences
Classification was simple...
Then Cladistic arrived... Common ancestors
And birds became dinosaurs!
We are all fish, technically
Scientists are humans...
None
https://pixabay.com/users/endriqstudio-13819715/ https://pixabay.com/users/endriqstudio-13819715/
It’s not easy to Unlearn
None
https://pixabay.com/users/sasint-3639875/ https://pixabay.com/users/sasint-3639875/ Object Oriented vs Functional
None
None
None
None
None
None
Thou Shalt Have No Manager Class
None
None
None
None
None
Credits https://pixabay.com/users/sasint-3639875/ Credits https://pixabay.com/users/sasint-3639875/ The Elephant in the room
None
Object-Oriented Functional
Url Shortener
Url Shortener
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? ?
None
Well Defined Types
None
Generics are Type builders
None
Anemic Objects Immutable Data
None
Don’t use Exceptions as result
None
Side effects should be left out
None
Function types instead of Interfaces
None
Which Language or Library should I use?
The ones that spark joy!
Where should I start in an existing Legacy Project?
https://pixabay.com/users/1588877-1588877/ Small changes
None
Unlearn is difficult Functional Programming is made of Arrows Look
at your code with new eyes (plus we are fish)
Excuses to avoid learning FP: It’s just a bunch of
funny words I don’t have time What’s the point?
Tell me your Questions! Uberto Barbini @ramtop Blog https://medium.com/@ramtop Book:
https://tinyurl.com/funkotlinbook