~/talk

Generating code in Go

Talkat GoLab 2023 · 2023-11-19..11-21· [developer-experience, typescript]
links:none on file
slides:none on file

Argues that generating Go code gives compile‑time safety and fewer runtime surprises, with concrete tools and results: using gqlgen moves GraphQL errors into the compiler and “squashes many bugs,” using sqlboiler turns DB schema into a generated ORM where a plain ten‑line Find exposes the SQL, and using decorators generated via go:generate ensures traces/logs/metrics are added automatically so telemetry stops being missed. Offers CI and Makefile rules to keep generated code reproducible.

AI-written summary · about

  1. 0:00Introduction to code generation
  2. 1:36Goals of the presentation
  3. 2:29Why use code generation
  4. 5:00Basics of Go code generation
  5. 7:08Generating API code
  6. 10:13Generating ORM code
  7. 14:17Generating decorators
  8. 18:10Best practices and challenges
  9. 20:48Live coding demonstration
  10. 28:00Summary and conclusions
  11. 30:03Q&A session
~/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.