fflib-apex-common
fflib-apex-common copied to clipboard
Interactor Class? (Discussion)
trafficstars
Is there space for the interactors principle within the world of Salesforce?
Uncle Bob: https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html Blog with examples: https://fullstackmark.com/post/11/better-software-design-with-clean-architecture
The point being that leaky controllers do not always help us keep track of database inserts etc. The space I see this fulfilling is the space of a Selector, but for database interactions such as write/delete/update etc.
Perhaps there is a better space for this discussion, but thought it would be good to start here.
Nathan