Mediator - Design Patterns in 5 minutes

Поділитися
Вставка

КОМЕНТАРІ • 3

  • @ehSamurai3483
    @ehSamurai3483 3 місяці тому +1

    It resembles an observer pattern. like the mediator has a signal method and all the devices are kind of subscribed to that mediator.

    • @levonog
      @levonog  3 місяці тому

      Yeah, kind of, but in the observer, the subscribers should not be able to communicate to each other. This is the main difference of these patterns

    • @ehSamurai3483
      @ehSamurai3483 3 місяці тому

      ​@@levonogAt 0:37 it's mentioned that there is no direct communication between objects, so it's the same in the mediator pattern?