Facade Pattern
noun
say it: “fuh-SAHD PAT-urn” /fəˈsɑːd ˈpætərn/
A design pattern that puts one simple front on several parts that must be used together.
What is the Facade pattern?
The Facade pattern puts one simple front on a set of parts that have to be used together, in the right order. A bakery's checkout.placeOrder(cart) takes the payment, updates the stock, prints the receipt and tells the kitchen, so no screen has to do those four steps itself. The parts are still there for anyone who needs one directly.
In a sentence
- “After the Facade pattern gave checkout one front, the phone screen stopped forgetting the stock step.”
Level: Journeyman · More OOP terms at this level
Updated