- Scala Design Patterns.
- Ivan Nikolov
- 46字
- 2021-08-27 19:09:48
The mediator design pattern
This pattern encapsulates the communication between different classes in an application. Instead of interacting directly with each other, objects communicate through the mediator, which reduces the dependencies between them, lowers the coupling, and makes the overall application easier to read and maintain.