DEV Community

Discussion on: JavaScript Proxy a first introduction

Collapse
 
brense profile image
Rense Bakker

This reminds me if adapter pattern from OOP.

Collapse
 
peerreynders profile image
peerreynders

Proxy Pattern


Design Patterns: Elements of Reusable Object-Oriented Software (1995)

  • Adapter - Intent: Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces. (p.139)

  • Proxy - Intent: Provide a surrogate or placeholder for another object to control access to it. (p.207)

Collapse
 
dailydevtips1 profile image
Chris Bongers

Thanks for sharing these additional resources Peer.
Love that patterns.dev website actually! (First time seeing that 🤯)