Programming Tips πŸ’‘
51.5K subscribers
67 photos
10 videos
30 files
354 links
Programming & AI:
Tips πŸ’‘
Articles πŸ“•
Resources πŸ‘Ύ
Design Patterns πŸ’Ž
Software Principles βœ…

πŸ‡³πŸ‡± Contact: @MoienTajik

🎯 Buy ads: https://telega.io/c/ProgrammingTip
Download Telegram
What is Dynamic Proxy❓

A proxy, in its most general form, is a class functioning as an interface to something else. ↗️

The proxy could interface to anything :
β€’ A network connection 🌐
β€’ A large object in memory πŸ—‚
β€’ A file πŸ“„
β€’ Some other resource that is expensive or impossible to duplicate. πŸ’Έ

πŸ”ΉπŸ”ΈπŸ”ΉπŸ”ΈπŸ”ΉπŸ”Έ

One way of thinking about proxies, is by the analogy to The Matrix πŸ•Ά by Krzysztof KoΕΊmic πŸ€” :

β€œPeople in the matrix aren’t the actual people ( β€œThe spoon does not exist”, remember❓)

They’re proxies to the actual people that can be… wherever.🌍

They look like ones, they behave like ones, but at the same time, they are not them actually.πŸ™…πŸ»β€β™‚οΈ

Another implication is the fact that different rules apply to proxies.✳️

Proxies can be what the proxied objects are, but they can be more (flying, running away from bullets, that kind of stuff).✈️

One more important thing, is that proxies ultimately delegate the behavior to the actual objects behind them (kind of like – β€œif you’re killed in the matrix, you die in the real life as wellβ€β˜ οΈ).”


A dynamic proxy is a proxy that is generated on the fly at runtime. βœ…

https://t.me/pgimg/70

γ€°γ€°γ€°γ€°γ€°γ€°
#Proxy #DynamicProxy
@ProgrammingTip