~/talk

Kotlin Meta Programming - Code Generation with Kotlin Poet

Talkat code.talks 2023 · 2023-09-14..09-15· [java, ai-assisted-development]
links:none on file
slides:none on file

Demonstrates generating real Kotlin source with Kotlin Poet, compiling and loading it to verify behavior, and wiring a Maven pipeline via a maven plugin for repeatable builds. Parses a JSON protocol to generate Kotlin data classes, provider interfaces and a QueryGateway extension, compiles them with kotlin-test-compile, and instantiates the generated class by reflection to show it runs. Recommends testing generators, caching by input hash to avoid repeated generation, and keeping generator API independent of the build integration.

AI-written summary · about

  1. 0:00Kotlin meta programming intro
  2. 5:29Code generation importance
  3. 7:18Meta programming explained
  4. 11:56Kotlin Poet hello world
  5. 20:19Axon code generation
  6. 25:43Code generator best practices
  7. 29:12Optimizing generator performance
~/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.