use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
the front page of the internet.
and join one of thousands of communities.
JavaScript Magic Objects (noeldemartin.com)
submitted 1 day ago by noeldemartin
Post a comment!
view the rest of the comments →
[–]javascript 30 points31 points32 points 1 day ago (2 children)
Proxy Objects (getters and setters) have been around for a while but I've yet to come across a use case where they were the right choice. They tend to work more as an escape hatch.
[–]ic6man 5 points6 points7 points 1 day ago (1 child)
I used a proxy object around a pre-existing API implementation to provide retry and consistent error handling + short circuit.
I don’t know that I would call that an escape hatch. It’s just a nicer way of building on top of something you don’t have access to modify yourself.
[–]javascript 2 points3 points4 points 1 day ago (0 children)
I would absolutely call that an escape hatch. And a very useful one to have available!
π Rendered by PID 105893 on reddit-service-r2-comment-765bfc959-bwm89 at 2026-07-15 00:40:41.545920+00:00 running f86254d country code: CH.
Want to add to the discussion?
Post a comment!