~/talk

Pragmatic Object-oriented Tagless Final

Talkat Scala Italy 2019 · 2019-09-20..09-21· [functional-programming, scala]
links:none on file
slides:none on file

Short theory plus two years of practical experience with tagless final, claiming it helps testability, effects tracking, context polymorphism but costs complexity and discipline. Recommends encoding services as traits/classes (module pattern), prefer minimal constraints — use MonadError only unless expert, avoid MonadTransformer types in public interfaces and global F, enable variance for flexibility. Shows a concrete pattern: convert Slick DBIO to Task with a natural transformation (ExecutionContext + DB config) and mapK to compose DB repositories with the app F; this approach works in practice.

AI-written summary · about

  1. 0:00Introduction
  2. 1:50Theory overview
  3. 3:14Expression problem explained
  4. 7:10Initial vs final encoding
  5. 10:20Tagged vs tagless encoding
  6. 12:09Tagless final explained
  7. 13:34Why use tagless final
  8. 16:26Libraries vs applications
  9. 19:13Benefits of tagless final
  10. 20:15Tagless final isn't free
  11. 22:06Using modules and interfaces
  12. 25:00Constraints and type classes
  13. 27:10Avoid monad transformers
  14. 28:34Use covariance
  15. 29:15Advanced tagless final
  16. 32:48Final remarks
  17. 33:54Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.