~/talk

Things I learned after a decade of writing code generators

slides:none on file

After a decade of building generators the claim is clear: generators save boilerplate but introduce maintenance hazards. Practical wins include generate builders for Kubernetes by producing JSON Schema as an intermediate and supporting multiple languages; use specialized AST libraries (Jennifer style) instead of fragile templates; enforce semantic versioning and check generated code into VCS so changes are visible and downstreams can compile in CI. Watch out for nondeterministic LLM output—GitHub Copilot/Codium and LLMs need tool-chaining (LangChain) and guards, not blind unsupervised generation.

AI-written summary · about

  1. 0:00Introduction
  2. 3:20Code generation importance
  3. 5:27First code generator
  4. 7:16Fluent builders for Kubernetes
  5. 9:27Polyglotism via code generation
  6. 10:53Domain specific languages and their challenges
  7. 14:09Template engines
  8. 17:25Specialized generators vs templates
  9. 21:20Handling incompatible changes
  10. 25:14Version control for generated code
  11. 29:26Tracking generated changes
  12. 32:16Generative AI limits
  13. 34:28Recap and key takeaways
  14. 35:31Q&A
~/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.