News for hackers. Stuff that matters.
Re:Metaprogramming: An Introduction to JavaScript (ES6) Proxy by Waterluvian on Thursday June 13, 2019 @02:39AM (#20172336)
I've been using Immer which relies on proxies to give you a plain object interface but also copy on write immutability.

It's very nice and I think is a practical example of when proxies make sense. However it does at times suffer from the cost of doing magic: you handle them in unusual ways and suddenly they break a lot.

Re:Metaprogramming: An Introduction to JavaScript (ES6) Proxy by SomeOldThrow on Friday June 14, 2019 @12:03AM (#20180496)
Yea, you’re right, I can see that working in the right context. These ARE essentially DSLs, though, so their success largely depends on hard to define things like documentation, coupling, and quarantining to expected places.
Re:Metaprogramming: An Introduction to JavaScript (ES6) Proxy by atapas on Sunday June 16, 2019 @01:57AM (#20194056)
Absolutely!