Grokking Design Patterns for Engineers and Managers
Vote

0% completed

​

Facade Pattern

The Facade Pattern puts one simple entry point in front of a subsystem that is more complicated than most callers need.

Doing one useful thing takes several objects in the right order. Placing an order means reserving stock, charging the card, creating a shipment, and sending a confirmation. Every caller that wants "place this order" writes those calls out, and every one of them has to remember what happens when the card is declined after the stock was already reserved.

That last part is where it goes wrong. The happy path is easy to copy correctly

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content