Architectures Using Functional Programming Concepts
summary
Uses Kotlin plus the open library kategory to replace RxJava and ad-hoc callbacks with concrete functional types: Either for errors, IO for wrapping side effects, and Reader for implicit dependency injection. Demonstrates collapsing nested monads with monad transformers and monad comprehensions so use cases avoid triple mapping. Provides Android sample apps (four variants) that run and test by supplying different Context records; unsafe runs happen only at the view edge. Shows clearer types, easier end-to-end testing, and fewer mocks.
AI-written summary · about
chapters (10)
- 0:00Start
- 1:33Purity or Referential Transparency
- 5:42Modeling Error and Success Cases
- 6:19Side Effects
- 6:52Errors and Success States
- 16:34Recap
- 18:40Network Data Source Implementation Using Io
- 20:04Return Type
- 21:12Presentation Logic
- 30:34Testing and Scenarios
related talks
43mFunctional approach to Android architecture using Kotlin
34mFunctional Programming in Kotlin for AndroidDevs
48mKotlin & Functional Programming: pick the best, skip the rest
44mKotlin & Functional Programming: pick the best, skip the rest
40mFunctional Programming in Kotlin with Kategory
34mFunctional Android
40mArchitecting Typed FP Applications & Libraries in Kotlin with Arrow
51mFunctional fashion for Kotlin projects
