Kotlin & Functional Programming: pick the best, skip the rest
summary
Argues that specific FP choices matter: Kotlin scope functions tame mutable APIs, Result and Either model errors but Either suits domain-level error handling, and blind use of monads turns code into a “container terminal.” Demonstrates Arrow (effects, monad comprehensions, optics) and Kotlin features (context receivers, bind) and shows they actually simplify flatMap nesting and nullable plumbing. Recommends selective use (avoid wrapping DB layers, prefer Either for recoverable errors); the Arrow rewrite is presented as a working bridge.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 2:30Programming Styles
- 6:40Scope Functions
- 8:50Higher Functions
- 11:35Composable Functions
- 13:05Category Theory
- 15:25Containers
- 16:45Building Blocks
- 20:20Monets
- 29:00Monet comprehension
- 31:44Maintenance headache
- 34:21Solution
related talks
48mKotlin & Functional Programming: pick the best, skip the rest
47mFunctional programming in Kotlin: exploring Arrow
50mPure Kotlin.
34mFunctional Programming in Kotlin for AndroidDevs
41mArchitectures Using Functional Programming Concepts
44mFrom OOP To FP
41mAn Arrow to the Kotlin
29mTreasure.map(): Functional Programming in Kotlin
