~/talk

AST: the Secret Weapon to Transform a Codebase

Talkat EmberConf 2020 · 2020-03-16..03-18· [developer-experience]
slides:none on file

Abstract Syntax Tree (AST) is the concrete technique that lets a codebase get bulk-upgraded: regex fails on multiline calls but code mod reliably converts thousands of sites in days, e.g. converting Ember curly to angle-bracket templates. Parsers like Babel and tools such as AST Explorer produce tokenized trees, transformation uses visitor hooks, and generation prints edits. A custom linter rule enforces conventions early, shortening review cycles and actually reducing manual fixes across the repo.

AI-written summary · about

  1. 0:00Start
  2. 3:22Observations
  3. 7:12Linter
  4. 8:50Edit Syntax
  5. 10:46Third Tool Transpiler
  6. 16:44Abstract Syntax Tree
  7. 17:25The Abstract Syntax Tree
  8. 19:52Parsing Process
  9. 20:52Real World Code Example
  10. 22:31Columnar Parser
  11. 23:59The Transformation Step
  12. 24:57Visitor Hook Pattern
  13. 27:07Code Generation Step
  14. 28:33Resources
  15. 28:54Contact Information
~/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.