|
|
|
|
|
by sanderjd
4476 days ago
|
|
Well, to separate concerns. ActionController does what it's good at (routing and rendering), and your application does what it's good at (business logic). One tangible benefit of separating concerns in this way is that it makes it possible to use the application itself as a module behind different adapters. So you can put it behind a raw tcp api, or a 0mq bus, or a command line front-end, etc., without needing to change anything but the adapters. It is very reasonable to question whether this is really all that useful or whether doing it from the start is a premature optimization, but it isn't pointless. |
|