~/talk

From OOP To FP

Talkat droidCon Berlin 2019 · 2019-07-01..07-03· [kotlin, functional-programming]
name:Adnan A M
links:none on file
slides:none on file

Explains a practical path from OOP to FP in Kotlin, showing the team’s year‑long migration and concrete wins: purer functions that simplify unit tests, immutability yielding easier concurrency, and memoization/parallel map opportunities. Recommends small habits — start with use val, run a 30‑day challenge to avoid loops and if — and uses Arrow‑KT types (Either, Option, IO) to model errors and effects. Side effects live at the outer boundary (roughly 90% functional, 10% imperative), and the converted samples run and test cleanly.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 3:46Unlearning OOP bias
  3. 8:17Declarative vs imperative
  4. 11:06Explicit return types
  5. 14:40Immutability benefits
  6. 17:11Pure functions explained
  7. 20:47Referential transparency
  8. 24:44Isolating side effects
  9. 26:30Function composition
  10. 27:14Exception handling in FP
  11. 28:57Avoiding classes for logic
  12. 31:53FP and OOP coexistence
  13. 33:20Daily functional habits
  14. 36:50Eliminating if conditions
  15. 38:18Caveats and gradual adoption
  16. 40:43Libraries like Arrow
  17. 41:25Handling exceptions with Either
  18. 42:48Option types and nulls
  19. 43:31IO for side effects
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.