Anti-Patterns in the Wild
summary
Concrete findings, tools and outcomes: an Erlang codebase of 183k lines of Erlang across 531 modules (plus 71k header lines and 7k C) yields recurring anti‑patterns like shifting state, giant case trees and mysterious APIs. Remedies include a homebrew state monad, a quickcheck‑style refactoring validator with MEK mocking that compares pre/post behavior, use of Dialyzer, Elvis and Wrangler (with caution), and enforced code reviews; a 214‑line monster function becomes three focused functions, reducing risk while keeping behavior.
AI-written summary · about
chapters (12)
- 0:00Start
- 0:19Anti-Patterns in the Wild
- 4:09Common Specimens of Anti-Patterns
- 4:28The Shifting State
- 13:07Case Study
- 16:02The Long Case
- 23:51Mysterious Api
- 30:01Catch-all Clauses
- 32:55Quick Check Model
- 37:55Automated Code Quality Checks
- 39:26Code Reviews
- 45:21How Do You Find Concurrency Errors








