Automating the Automator
summary
Shows that with Elixir 1.13 plus Sourceror you can parse source to AST, apply targeted transforms and render formatted code back; demonstrates a working Credo plugin auto-correct that reads linter issues, applies AST edits and writes fixes; highlights zipper/patcher APIs for local edits versus full reformatting; gives concrete examples (underscore removal in string_to_charlist changes, converting filter_map into filter + map, router edits for Phoenix generators), and notes limits: comments, formatting and syntax errors.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:25Horror story of automation
- 4:34Talk origins and compiler basics
- 6:22How compilers parse code
- 7:26Code mods and AST manipulation
- 9:54Sorcerer library evolution
- 10:56AST transformation example
- 13:06Building AST tools
- 15:20Refactoring with Credo
- 18:12Library migrations with code mods
- 19:35Editor tools and Wrangler
- 21:42Code mods in JavaScript
- 22:44Benefits and drawbacks of code mods
- 24:13Acknowledgments
- 26:12Q&A








