Into the Heart of Darkness: Rails Anti-Patterns
summary
Practical catalog of Rails anti‑patterns with concrete fixes: finds unused plugins and routes, shows an 80+ line controller method pulled apart, warns about IRB‑pasted hacks and fragile external calls, and quantifies smells with tools like reek and metric_fu; prescribes executable business stories with cucumber specs, GitHub review workflows, and automated builds (mentions Integrity). Emphasis stays on measurable checks, build artifacts, and when to mock versus run integration checks.
AI-written summary · about
chapters (13)
- 0:00Start
- 0:19INTO THE HEART OF DARKNESS
- 6:12ANTI-PATTERN
- 6:43KNOW YOUR APIS
- 7:30KNOW YOUR CODE
- 19:41gem install reek (or metric_fu)
- 21:39ORPHANS
- 22:42(DIS)ORGANIZATION
- 25:05THE COUPLED TEST
- 26:46Complex tests mean complex code
- 27:35Make Decisions and Document Them
- 29:19Build Artifacts
- 31:08Reviews and Retrospectives
related talks
39mExploring Rails anti-patterns
41mOff the Tracks - Challenging the Rails Mindset
31mIf it bleeds, it leads
39mDown The Rabbit Hole: An Adventure in Legacy Code
28mRESCUE SQUAD: Rails Edition!
30mThe Rails Story: Two Decades of Design and Decisions
31mThe History of Rails in 10 Blog Posts
28mRefactoring for Rails - using deodorant to prevent code smells
