Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore how to manage growing application complexity using Hanami 2, a flexible Ruby framework that organizes code through clear, intentional boundaries in this 39-minute conference talk from Rocky Mountain Ruby 2025. Learn about Hanami's core concept of "slices" - optional, modular boundaries that allow you to organize applications by feature rather than just by layer, enabling complete isolation of different business domains like billing, onboarding, and authentication while maintaining clean integration through well-defined interfaces. Discover how Hanami breaks down the traditional MVC stack into small, single-purpose layers where each action gets its own class for parameter handling and system orchestration, views become plain Ruby objects that prepare data for rendering separate from templates, and the ROM-powered persistence layer encourages immutability and composability through data structs and repositories. Understand how this architectural approach creates a lightweight yet powerful framework that provides clear, straightforward APIs for writing focused, testable Ruby code without dictating specific architecture patterns. See how Hanami enables the creation of true modular monoliths, offering the freedom and tools to structure applications according to your specific needs while spending less time fighting framework constraints and more time writing quality Ruby code.