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
240
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
Let's Put the Fun Back in Functional Programming
ramtop
0
100
Error Handling and Logging in a Functional World
ramtop
0
540
Future Java: Project Valhalla LW2
ramtop
0
59
Quarkus.io + Kotlin = Supersonic Kotlin
ramtop
0
250
Microservices From The Trenches
ramtop
1
77
4 Rules of Simple Design in Functional Programming
ramtop
0
51
4 Rules of Simple Design in Functional Programming
ramtop
1
960
Project Valhalla and Value Types
ramtop
0
280
The State of Quality - Making life hard for bugs
ramtop
1
130
Other Decks in Programming
See All in Programming
RubyVM を PHP で実装する 〜Hello World を出力するまで〜
memory1994
PRO
1
490
Dockerで始めるAWS Lambda開発
stutkhd0709
14
2.5k
Laravel標準バリデーションでできること
hmb_ok
2
360
導入から5年が経って見えた Datadog APM 運用の課題
bgpat
2
540
Prepare for Jakarta EE 11 - Performance and Developer Productivity
ivargrimstad
0
530
Learning PHP and Static Analysis with PHP Parser
inouehi
1
250
Cloud RunとCloud PubSubでサーバレスなデータ基盤2024 with Terraform / Cloud Run and PubSub with Terraform
shinyorke
7
1.9k
ここ1~2年くらいで 使えるようになった(主要ブラウザーの最新版 がすべて対応した ) ウェブの新機能について ランダムに喋る!
myzkyy
9
6.5k
object-oriented-conference-2024
fuwasegu
6
2k
Some Quick Ideas To Improve Your Tests ( #jassttokyo )
teyamagu
PRO
2
2.3k
デザインシステムで Tailwind CSSとCSS in JSに分散投資をしたら良かった話
fsubal
14
3.5k
The Future of C++ Interoperability: Insights from Porting a Game to Swift
teamhimeh
0
280
Featured
See All Featured
The Straight Up "How To Draw Better" Workshop
denniskardys
227
130k
Building Your Own Lightsaber
phodgson
97
5.6k
Imperfection Machines: The Place of Print at Facebook
scottboms
257
12k
Fantastic passwords and where to find them - at NoRuKo
philnash
35
2.4k
In The Pink: A Labor of Love
frogandcode
137
21k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
124
32k
Why You Should Never Use an ORM
jnunemaker
PRO
50
8.6k
The Cult of Friendly URLs
andyhume
73
5.6k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3k
Music & Morning Musume
bryan
39
5.5k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
1
1.2k
KATA
mclloyd
14
11k
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