Re:Show HN: Rust Web Framework
by JamesSwift on Tuesday October 22, 2024 @02:09PM
(#41916992)
In general, I think 'unit test' level business logic should be in the model (think configuration for data-driven workflows, normalization logic, etc) but 'integration test' business logic should be in a service (callback logic, triggering emails, reaching across object boundaries, etc).
I think most people agree about skinny controllers but I've definitely seen disagreement on if that gets moved to fat models or service objects.
I think most people agree about skinny controllers but I've definitely seen disagreement on if that gets moved to fat models or service objects.