Hacker News new | ask | show | jobs
by sfa_aok 2955 days ago
Salesforce use this in their Lightning Framework. I've not gone beyond the surface of that framework, but I've found its use of proxies adds friction to development. Trying to debug in the browser, anything other than a primitive results in a looking at an empty Proxy object - I believe this is a deliberate choice behind the framework in the name of security. But it makes it much harder to discover what's in an object - if you don't know the name of a property, good luck getting it.

Note that this is either due to how the framework uses Proxy, rather than Proxy itself, or I'm doing it wrong and should do more reading up on it. It really could be the latter - given my level of experience and knowledge, I thought hard about posting this comment!

2 comments

Everything about the Salesforce JS experience from the ground up is horrible. They'd have to pay me a lot more money to do that again.
The biggest thing that gets me when my coworkers do SF dev is how many times they have to refresh to see the new code. Its almost always two or three.

Ive seen the proxy thing trying to debugging. I didn't realize it was a set pattern/language feature.