The controller was never the unit. The use case is.
A fat ASP.NET controller refactored one complaint at a time: feature folders, one class per use case, errors as values, and rules that survive leaving HTTP.
2 posts · all tags
A fat ASP.NET controller refactored one complaint at a time: feature folders, one class per use case, errors as values, and rules that survive leaving HTTP.
Three interfaces that look interchangeable and are not: when each one reads configuration, what that means for reloads, and the pitfalls that hit real codebases.