~/talk

Simple Dependency Management in Kotlin

Talkat AndroidTO 2018 · on Tuesday, 2018-11-06· [kotlin, software-architecture]
links:none on file
slides:none on file

Claim: Kotlin language features alone handle dependency wiring without Dagger or Koin by composing interfaces and encoding type classes. The demo refactors a fetchUser flow into small interface composition pieces, wraps results in a generic Kind/F emulation so network and DB return F<User>, and adds constructors just, raiseError, defer, async to control eagerness and errors. Arrow supplies the runtime type class interfaces and an annotation processor to generate bindings until KEEP‑87 lands. The example app and library code compile and run end to end.

AI-written summary · about

  1. 0:00Introduction
  2. 1:43Starting the example
  3. 7:28Refactoring without Arrow
  4. 11:41Introducing Kind and Applicative
  5. 20:01Adding Defer and Async
  6. 27:51Putting it all together
  7. 30:03Type-based dependency injection
  8. 42:00Summary and takeaways
  9. 44:29Q&A
~/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.