Actions, Policies, and the Art of Obvious Code
Dev.to AI
•
Generative AI
Fat Controllers Die Hard After extracting traits into services, the controllers were thinner, but still fat. A typical method in OrdersController did: Validate input Create the order Create related records Upload documents Send email notifications Fire events for audit trails Send chat notifications Redirect with flash message That's eight responsibilities in one method. When Claude looked at this controller to understand how orders work, it had to parse all eight concerns interleaved together.