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
290
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
160
Let's Put the Fun Back in Functional Programming
ramtop
0
140
Error Handling and Logging in a Functional World
ramtop
0
670
Future Java: Project Valhalla LW2
ramtop
0
87
Quarkus.io + Kotlin = Supersonic Kotlin
ramtop
0
320
Microservices From The Trenches
ramtop
1
110
4 Rules of Simple Design in Functional Programming
ramtop
0
71
4 Rules of Simple Design in Functional Programming
ramtop
1
1.1k
Project Valhalla and Value Types
ramtop
0
320
Other Decks in Programming
See All in Programming
サーバーゆる勉強会 DBMS の仕組み編
kj455
1
370
DMMオンラインサロンアプリのSwift化
hayatan
0
280
社内フレームワークとその依存性解決 / in-house framework and its dependency management
vvakame
1
520
ISUCON14公式反省会LT: 社内ISUCONの話
astj
PRO
0
150
AHC041解説
terryu16
0
550
ecspresso, ecschedule, lambroll を PipeCDプラグインとして動かしてみた (プロトタイプ) / Running ecspresso, ecschedule, and lambroll as PipeCD Plugins (prototype)
tkikuc
2
3k
Java Webフレームワークの現状 / java web framework at burikaigi
kishida
9
2.1k
さいきょうのレイヤードアーキテクチャについて考えてみた
yahiru
2
610
Package Traits
ikesyo
2
230
rails newと同時に型を書く
aki19035vc
6
750
テストをしないQAエンジニアは何をしているか?
nealle
0
100
Immutable ActiveRecord
megane42
0
130
Featured
See All Featured
RailsConf 2023
tenderlove
29
980
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
4
380
Building an army of robots
kneath
302
45k
A Modern Web Designer's Workflow
chriscoyier
693
190k
BBQ
matthewcrist
86
9.4k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.8k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
1.3k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
29
2.2k
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
A designer walks into a library…
pauljervisheath
205
24k
Being A Developer After 40
akosma
89
590k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.7k
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