Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
Real World Functional Programming with Kotlin
Ahmed Rizwan
January 19, 2019
Programming
0
74
Real World Functional Programming with Kotlin
Ahmed Rizwan
January 19, 2019
Tweet
Share
Other Decks in Programming
See All in Programming
koher
7
710
adoranwodo
0
260
mfunaki
1
460
showwin
0
130
takahi5
0
250
masayaaoyama
4
560
line_developers_tw2
0
860
viteinfinite
0
210
line_developers_tw2
0
1.1k
steipete
PRO
2
170
bkuhlmann
4
620
kazaman97
0
210
Featured
See All Featured
mojombo
358
62k
sachag
267
17k
chrislema
173
14k
roundedbygravity
241
21k
orderedlist
PRO
329
35k
shpigford
368
42k
smashingmag
229
18k
michaelherold
225
8.5k
jlugia
216
16k
chriscoyier
780
240k
productmarketing
5
660
tanoku
86
8.5k
Transcript
Real world functional programming with Kotlin Ahmed Rizwan So7ware Engineer
(Mobile)
Common Functional Techniques by Jordan Parmer
The Goal Go through a simple real world application dealing
with control ?ow and errors, and demonstrate some functional techniques.
The Approach The concepts used/applied should be available on all
industry-accepted functional programming languages.
FP Languages C# F# Java/Kotlin Scala Clojure JavaScript PureScript Elm
Haskell Functional
FP Toolbox Functor Monads Applicatives …
Abstract DataTypes Option - Something or Nothing Either - Error
or Success IO - Side ESects Try - Exception …
Arrow Functional Companion to Kotlin’s Standard Library hWps://arrow-kt.io
The Railway PaCern Elegant Control-Flow
The Railway PaCern Source Parse Transform Send Success Failure
Two Possible Results Parse Success Failure
Bypass to Failure Parse Transform Failure
Example Time!
None
None
None
Live Coding
Code up on Github! https://github.com/ahmedrizwan/FunctionalKotlin-Demo