5 ms·
This looks like a really good way to stop putting all your messy code into Controllers and start putting it into Operations. The problem with messy code or whe
by vasco 14y ago
This looks like a really good way to stop putting all your messy code into Controllers and start putting it into Operations.
The problem with messy code or where it lives will not go away because you think about it differently, you just have to either hire better people or spend more time and money refactoring.
- cirwin 14y agoThe advantage of operations over controllers is the composability. Whereas controllers have a pretty undefined lifetime, operations are finished when they're done. This means that operations can use each other to get work done, a pattern you don't see with controllers.
- alttab 14y agoYou can build a set of composable methods that you can use in the controller.