Refactoring Elixir - Lessons Learned from a Year on
summary
Refactors of exercism.io solutions show concrete wins: a binary-search rewrite trades a case statement for pattern-matched clauses with negligible speed change; benchmarking with Benchee (10s runs per case) produces the surprise that pattern matching is fast and that a map lookup is almost twice as slow than an equivalent pattern-match. Space-age math moves to a macro so the macro compiles math at compile time, yielding measurable gains. A fast_elixir repo collects these before/after benchmarks and examples.
AI-written summary · about
chapters (7)
- 0:00Start
- 3:48MAKE CODE "BETTER"
- 4:48EXERCISM IS GREAT FOR THIS!
- 5:43BINARY SEARCH
- 12:30SPACE AGE
- 16:58ALLERGIES
- 23:28WHAT'S THE POINT?








