~/talk

Play on Dotty: Design Patterns unlocked by Dotty in a Play...

Talkat Scale By The Bay 2018 · 2018-11-15..11-17· [scala, web-platform]
name:Jeff May
links:none on file
slides:none on file

Dotty (Scala 3, using 0.10.0‑RC1 with SBT 1.2.3) unlocks implicit functions and trait parameters to thread request context without thread‑locals. A Play‑like strawman is built: action builders that refine a base request into a correlation‑ID and optional authenticated user, a context refiner abstraction, and a logger that injects path/user/correlation into logs. The demo runs end‑to‑end (200/401 flows), compares reader‑monad, explicit funcs and implicits, and the code is on GitHub.

AI-written summary · about

  1. 0:00Introduction to speaker
  2. 0:14Scala and Play framework journey
  3. 2:20What is Dotty and Scala 3
  4. 4:06Understanding context in applications
  5. 7:17Modules and dependency injection
  6. 10:28Parameterizing context passing
  7. 13:17Reader monad for context
  8. 17:34Implicit parameters in Scala
  9. 19:03Implicit functions in Scala 3
  10. 21:11Demo goals and setup
  11. 22:37Simple Play action builder demo
  12. 25:38Accessing request context in Play
  13. 27:05Custom request context refinement
  14. 28:32Context refiners explained
  15. 30:17Refining action builders
  16. 31:22Authenticated request context
  17. 33:38Custom responders for responses
  18. 35:29Context-based logging demo
  19. 37:55Advantages over thread locals
  20. 38:16Library design with context
  21. 39:07Closing remarks and thanks
~/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.