Façade vs. Mediator

…most sites point out that the mediator “adds functionality”… The facade only exposes the existing functionality from a different perspective. The mediator “adds” functionality because it combines different existing functionality to create a new one. Take the following example: You have a logging system. From that logging system, you can either log to a file, … Read more

Mediator Vs Observer Object-Oriented Design Patterns

The Observer pattern: Defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically. The Mediator pattern: Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)