[{"data":1,"prerenderedAt":67},["ShallowReactive",2],{"term-p\u002Fproxy-pattern":3,"related-p\u002Fproxy-pattern":56},{"id":4,"title":5,"acronym":6,"body":7,"category":39,"description":40,"difficulty":41,"extension":42,"letter":16,"meta":43,"navigation":44,"path":45,"related":46,"seo":50,"sitemap":51,"stem":54,"subcategory":6,"__hash__":55},"terms\u002Fterms\u002Fp\u002Fproxy-pattern.md","Proxy Pattern",null,{"type":8,"value":9,"toc":32},"minimark",[10,15,19,23,26,30],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"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.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"undefined",[11,27,29],{"id":28},"when-youll-hear-this","When You'll Hear This",[16,31,25],{},{"title":33,"searchDepth":34,"depth":34,"links":35},"",2,[36,37,38],{"id":13,"depth":34,"text":14},{"id":21,"depth":34,"text":22},{"id":28,"depth":34,"text":29},"architecture","A Proxy is a stand-in for a real object that controls access to it.","intermediate","md",{},true,"\u002Fterms\u002Fp\u002Fproxy-pattern",[47,48,49],"Decorator Pattern","Adapter Pattern","Singleton Pattern",{"title":5,"description":40},{"changefreq":52,"priority":53},"weekly",0.7,"terms\u002Fp\u002Fproxy-pattern","CrmUCoagsZngUL-VeeUaoaj2uCKxNP_PJMH4Ts5ycz8",[57,60,63],{"title":48,"path":58,"acronym":6,"category":39,"difficulty":41,"description":59},"\u002Fterms\u002Fa\u002Fadapter-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 .",{"title":47,"path":61,"acronym":6,"category":39,"difficulty":41,"description":62},"\u002Fterms\u002Fd\u002Fdecorator-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.",{"title":49,"path":64,"acronym":6,"category":39,"difficulty":65,"description":66},"\u002Fterms\u002Fs\u002Fsingleton-pattern","beginner","Singleton says: 'this class shall have exactly ONE instance, ever.' Database connections, config objects, loggers — things you only want created once.",1776518304393]