Explicit Elixir
summary
A pragmatic case for making code explicit: a modified Luhn credit‑card validator from Rosetta Code demonstrates putting the input at the top of a pipeline, breaking transformations into named functions, and testing the reducer. Examples use Phoenix as a pipeline of plugs, Ecto and Mobius for query building with a query command struct, and Enum (use enum unique instead of hand‑rolled dedupe). A small meetup of about ten people finds these patterns reduce if/elsif complexity and they work.
AI-written summary · about
chapters (5)
- 0:00Start
- 10:20Lund Algorithm for Calculating Credit-Card Validity
- 16:43Pattern Matching
- 18:04Common Idioms
- 25:08Getting Set Functions








