~/talk

Don't Fear the Implicits: Everything You Need to Know About Typeclasses

Talkat Scala Days Berlin 2016 · 2016-06-15..06-17· [scala]
slides:none on file

Explains how Scala implicits implement typeclasses by building a quantity type class example that evolves from inheritance to implicit vals, context bounds and an implicitly summon; shows companion-object defaults, constructors (a one‑line simple constructor), combinators like contramap, and generic implicit defs for Option/List; integrates Circe encoders into akka‑http marshallers to derive JSON and HTTP serializers; warns about ambiguous or harmful defaults, serialization needs, and advises providing apply, constructors and opt‑out paths.

AI-written summary · about

  1. 0:00Start
  2. 5:30Example
  3. 6:18DistributedDataset
  4. 15:21Context bounds
  5. 15:39Implicit resolution
  6. 16:57Local implicit
  7. 17:14Imported implicits
  8. 17:45Inherited implicits
  9. 18:06Overriding implicits
  10. 20:48Operators
  11. 21:59Error messages
  12. 22:53Shortcut for implicitly
  13. 24:18Typeclass constructors
  14. 28:20Combinators: Circe
  15. 30:12Generic instances: Circe
  16. 36:23Default instances
  17. 38:28Serializable
  18. 39:58Questions to ask
  19. 42:27Summary
~/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.