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
330
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
Are Developers Obsolete?
ramtop
0
160
Handling Json in Functional Way in Kotlin
ramtop
0
17
Earthquake and Kominka
ramtop
0
250
Let's Put the Fun Back in Functional Programming
ramtop
0
190
Error Handling and Logging in a Functional World
ramtop
0
750
Future Java: Project Valhalla LW2
ramtop
0
150
Quarkus.io + Kotlin = Supersonic Kotlin
ramtop
0
380
Microservices From The Trenches
ramtop
1
150
4 Rules of Simple Design in Functional Programming
ramtop
0
86
Other Decks in Programming
See All in Programming
Agent Skills Workshop - AIへの頼み方を仕組み化する
gotalab555
15
8.3k
S3ストレージクラスの「見える」「ある」「使える」は全部違う ─ 体験から見た、仕様の深淵を覗く
ya_ma23
0
130
Swift ConcurrencyでよりSwiftyに
yuukiw00w
0
250
AWS Infrastructure as Code の新機能 2025 総まとめ 〜SA 4人による怒涛のデモ祭り〜
konokenj
10
3.3k
CSC307 Lecture 13
javiergs
PRO
0
310
手戻りゼロ? Spec Driven Developmentとは@KAG AI week
tmhirai
1
170
エージェント開発初心者の僕がエージェントを作った話と今後やりたいこと
thasu0123
0
240
DevinとClaude Code、SREの現場で使い倒してみた件
karia
1
990
Rで始めるML・LLM活用入門
wakamatsu_takumu
0
170
AI Assistants for Your Angular Solutions
manfredsteyer
PRO
0
110
PostgreSQL を使った快適な go test 環境を求めて
otakakot
0
510
AIに任せる範囲を安全に広げるためにやっていること
fukucheee
0
120
Featured
See All Featured
My Coaching Mixtape
mlcsv
0
67
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
1
1.3k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Statistics for Hackers
jakevdp
799
230k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
130
sira's awesome portfolio website redesign presentation
elsirapls
0
190
For a Future-Friendly Web
brad_frost
183
10k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.6k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
140
Docker and Python
trallard
47
3.8k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
140
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
280
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