Elm Radio

031: Elm Code Generation


Listen Later

  • What's the source of truth?

  • Teach the Elm compiler about external things like schemas

  • elm-graphql

  • dillonkearns/elm-graphql

  • Types Without Borders

  • Macros in other languages

  • C macros compared to Lisp macros

  • ReScript ppx macros

  • Vanilla code generation can be inspected and debugged like plain handwritten code

  • Gitignore gen code so you know you didn't forget to generate it on the build server

Watchers for rerunning codegen
  • Rerun code gen when the source of truth changes ideally

  • Chokidar CLI

  • The Design of Everyday Things by Donald Norman

  • Affordances

  • Mappings

  • elm-tailwind-modules

  • Chadtech/elm-vector

  • the-sett/salix

  • elm-ts-interop

Scaffolding
  • elm-review init, new-rule, and new-package
  • elm-spa new
  • html-to-elm.com
  • End to end testing your generated code
  • Snapshot testing
  • elm-graphql's snapshot testing script
  • html-to-elm.com generated test suite
  • elm-verify-examples
...more
View all episodesView all episodes
Download on the App Store

Elm RadioBy Dillon Kearns, Jeroen Engels

  • 5
  • 5
  • 5
  • 5
  • 5

5

16 ratings