~/talk

Crafting Fully Custom Code Generators

links:none on file
slides:none on file

Custom Elixir generators take an Elixir input file (keyword lists or structs), run a preprocessing digestor that pulls from legacy source code, an Oracle schema, and human notes, then use a mix task to evaluate EEx templates plus helper modules to emit migrations, schemas, tests, LiveView files and factory snippets. The workflow uses mix generator.create_file, runs the formatter, iterates in a temp dir to avoid compile breaks, and doubles test coverage in the demo—generators work and save time.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04Why build generators
  3. 3:53Phoenix generator challenges
  4. 7:25Arcane Assist demo
  5. 8:52Generator in action
  6. 11:00Core components
  7. 13:25Helper modules
  8. 15:31Mix task details
  9. 17:20EEx template magic
  10. 18:45Maintainable generators
  11. 21:15Avoid over-engineering
  12. 23:41Future improvements
~/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.