~/talk

Code Generation For Everyone and Everywhere

Talkat EclipseCon 2023 · 2023-10-16..10-19· [javascript, developer-experience]
slides:none on file

Code generation uses Typescript/Node.js and Langium to replace plain ES6 templates with composable generator nodes that carry indentation, newline if-not-empty semantics, and annotations instead of raw strings. A tagged-template-like API produces an intermediate object, a second toString step emits formatted text with configurable indentation, and a tracing pass emits source maps so generated code debugs back to DSL source in the browser. Live demos build, run, and debug generated code successfully and the implementation is open source.

AI-written summary · about

  1. 0:00Introduction to code generation
  2. 1:39Limitations of string templates
  3. 7:19Tagged templates and runtime
  4. 14:03Abstract generator nodes
  5. 17:26Smart indentation and formatting
  6. 22:47Tracing and annotation
  7. 25:43Practical applications
  8. 29:28Front-end and debugging demo
  9. 33:25Advanced debugging and conclusion
~/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.