~/talk

Code Generation to Survive

Talkat GoWayFest 2.0 2018 · on Friday, 2018-09-28· [developer-experience]
slides:none on file

Generates concrete Go decorators from real interfaces: gorap parses packages, finds an interface and emits wrappers for retries, fallbacks, round‑robin pools, circuit breakers, OpenTracing spans and Prometheus metrics. Templates live as versioned links or copied into the repo for reproducible builds; generated files include a go generate comment so regeneration is a single command. Used in production at Juno to avoid hand‑writing identical glue and the generated code works for many services with fewer bugs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:17Code generation basics
  3. 4:34Problem with unique interfaces
  4. 7:05Need for reusable decorators
  5. 12:51Introducing go-wrap
  6. 17:21Available templates
  7. 23:32Benefits of code generation
  8. 24:14Q&A: Retry templates
  9. 25:20Q&A: Testing templates
  10. 26:31Q&A: Dead code concerns
  11. 27:53Q&A: Web interface idea
  12. 28:58Q&A: Manual edits in generated code
  13. 31:07Q&A: Combining decorators
  14. 32:12Q&A: Code generation in CI
  15. 34:48Q&A summary and closing
~/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.