☆ Yσɠƚԋσʂ ☆
- 74 Posts
- 3 Comments
Joined 5 years ago
Cake day: January 18th, 2020
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
welcome to the world that capitalism built
welcome to the world that capitalism built
I find what you generally want is a service bus. For example, if you have common tasks like sending emails, making PDFs, etc. you can create generic services that handle the action, and then call them providing the context such as the document the service should operate on. Meanwhile, actual business logic and the state should absolutely live in a single place.