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
300
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
180
Let's Put the Fun Back in Functional Programming
ramtop
0
150
Error Handling and Logging in a Functional World
ramtop
0
690
Future Java: Project Valhalla LW2
ramtop
0
99
Quarkus.io + Kotlin = Supersonic Kotlin
ramtop
0
330
Microservices From The Trenches
ramtop
1
110
4 Rules of Simple Design in Functional Programming
ramtop
0
73
4 Rules of Simple Design in Functional Programming
ramtop
1
1.2k
Project Valhalla and Value Types
ramtop
0
330
Other Decks in Programming
See All in Programming
Enterprise Web App. Development (1): Build Tool Training Ver. 5
knakagawa
1
120
Fiber Scheduler vs. General-Purpose Parallel Client
hayaokimura
1
230
タイムゾーンの奥地は思ったよりも闇深いかもしれない
suguruooki
1
780
Golangci-lint v2爆誕: 君たちはどうすべきか
logica0419
1
200
ComposeでのPicture in Picture
takathemax
0
130
「理解」を重視したAI活用開発
fast_doctor
0
220
MCP調べてみました! / Exploring MCP
uhzz
2
2.3k
プロダクト横断分析に役立つ、事前集計しないサマリーテーブル設計
hanon52_
2
490
REALITY コマンド作成チュートリアル
nishiuriraku
0
110
note の Elasticsearch 更新系を支える技術
tchov
4
1k
Instrumentsを使用した アプリのパフォーマンス向上方法
hinakko
0
140
SwiftUI API Design Lessons
niw
1
310
Featured
See All Featured
Become a Pro
speakerdeck
PRO
28
5.3k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
30
2.3k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.6k
Writing Fast Ruby
sferik
628
61k
How to Think Like a Performance Engineer
csswizardry
23
1.5k
Typedesign – Prime Four
hannesfritz
41
2.6k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.3k
Building a Modern Day E-commerce SEO Strategy
aleyda
40
7.2k
Side Projects
sachag
453
42k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
5
540
Fireside Chat
paigeccino
37
3.4k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
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