Proxy Pattern
ELI5 — The Vibe Check
A Proxy is a stand-in for a real object that controls access to it. Like a personal assistant who screens your calls — they pick up, decide if you need to be bothered, and only connect the important ones. In code: a caching proxy intercepts database calls and returns cached results; a protection proxy checks permissions before letting you proceed.
Real Talk
undefined
When You'll Hear This
undefined
Related Terms
Adapter Pattern
You're in Europe with a US charger. You need an adapter. In code, your app expects a PaymentProcessor with a .pay() method, but the new Stripe SDK uses .
Decorator Pattern
You have a Coffee object. You want Coffee with Milk. Coffee with Sugar. Coffee with Milk and Sugar. With inheritance you'd need four classes.
Singleton Pattern
Singleton says: 'this class shall have exactly ONE instance, ever.' Database connections, config objects, loggers — things you only want created once.