~/talk

Scala Meta Live Coding Session

Talkat Scale By the Bay 2017 · 2017-11-16..11-18· [scala]
slides:none on file

Live coding builds a Scala Meta annotation that reads a case class annotated with resource and generates companion DTOs: a get case class with listed fields, a post case class with required fields, and a patch case class whose types are option-wrapped patch fields with default None. Implementation uses Scala 2.12, Scala Meta 1.8, quasiquotes, pattern-matching on Defn.Class/Companion, handles missing companion generation, and verifies correctness with sbt ~test and compile-time assertions.

AI-written summary · about

  1. 0:00Start
  2. 1:45Why Macros
  3. 2:40What Are Macros
  4. 2:58Annotation Macros
  5. 14:28Create the Resource Annotation
  6. 14:40Restful Annotations
  7. 35:53Declare Type
~/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.