~/talk

Make Ruby Write Your Code for You

Talkat RubyConf 2018 · 2018-11-28..11-30· [ruby]
links:none on file
slides:none on file

A Ruby based code generator called Magic Modules takes a YAML word bank plus ERB templates and emits real Ruby and also Python and Go clients that integrate with GCP. It cuts repeated hand edits after about 50–60 similar features by treating templates as source of truth and regenerating outputs. The tool is open sourced on github.com/googlecloudplatform/magic-modules and is actively used to produce maintainable provider code rather than hand copy paste.

AI-written summary · about

  1. 0:00Introduction
  2. 1:50Magic Modules
  3. 2:58What is Auto Generation
  4. 5:04What is a Madlib
  5. 10:52Ruby abstractions
  6. 13:48What are classes
  7. 14:26Class abstraction
  8. 17:49The copypaste problem
  9. 18:17At scale
  10. 20:51When to autogenerate
  11. 22:56Ruby Autogenerate
  12. 23:50Templates
  13. 25:07Ruby Code
  14. 27:49Word Bank
~/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.