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
250
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
89
Let's Put the Fun Back in Functional Programming
ramtop
0
110
Error Handling and Logging in a Functional World
ramtop
0
570
Future Java: Project Valhalla LW2
ramtop
0
59
Quarkus.io + Kotlin = Supersonic Kotlin
ramtop
0
260
Microservices From The Trenches
ramtop
1
83
4 Rules of Simple Design in Functional Programming
ramtop
0
55
4 Rules of Simple Design in Functional Programming
ramtop
1
990
Project Valhalla and Value Types
ramtop
0
280
Other Decks in Programming
See All in Programming
欠陥を早期に発見するための Software Engineer in Test とその重要性 / What is Software Engineer in Test and How they works
orgachem
PRO
18
2.5k
CREってこういうこと? 体験入社 - 提案資料 - / what-is-cre-trial-employment
shinden
1
620
チーム立ち上げにAWSを活用したらClaudeさんに褒められた話
mkdev10
3
230
Findy - エンジニア向け会社紹介 / Findy Letter for Engineers
findyinc
2
74k
Slackワークフローで感謝を伝える機能/WiFi 自動接続/Figma to React Component/障害レポート君 Team3@NOT A HOTEL
nakaohiroshi
0
170
Exploring Type-Informed Lint Rules in Rust based TypeScript Linters
unvalley
3
650
How to implement a RubyVM with PHP?
memory1994
PRO
2
860
The World is a Network (and We Are Just Nodes)
whatyouhide
0
100
[RubyKaigi 2024] Ruby Mixology 101: adding shots of PHP, Elixir, and more
palkan
0
140
TypeScript Custom GitHub Action Development Tips
peaceiris
5
800
GitLab CI/CD で C#/WPFアプリケーションのテストとインストーラーのビルド・デプロイを自動化する
hacarus
0
620
Enjoy Creative Coding with Ruby (RubyKaigi2024)
chobishiba
0
890
Featured
See All Featured
The Straight Up "How To Draw Better" Workshop
denniskardys
228
130k
A designer walks into a library…
pauljervisheath
201
23k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
21
2k
Mobile First: as difficult as doing things right
swwweet
217
8.6k
Building Adaptive Systems
keathley
32
1.9k
Build your cross-platform service in a week with App Engine
jlugia
226
17k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
226
51k
The Brand Is Dead. Long Live the Brand.
mthomps
49
30k
Robots, Beer and Maslow
schacon
PRO
155
8k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
1
130
A Tale of Four Properties
chriscoyier
153
22k
Building Applications with DynamoDB
mza
88
5.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