Learn how to use JavaScript Proxy by example! MDN Docs: developer.mozilla.org/en-US/d... Support me on Patreon! / shama Code examples: github.com/shama/letswritecod...
I really, REALLY, did like your video. You're a awesome teacher. I would suggest you to work on more real-life examples as they show the real face and power of the functionality. I mean, the array example could've been done using the prototype on plain old ECMA. You could show us a example making an API request and changing it's response to show only data we need to get, whatever. My like goes with you! Keep up your great work
Really useful! I'll definitely do my own proxies objects, the idea of findById is very useful because there're many cases in which I end up doing the typical way to get an object like you did but in many different places, so by having a proxy like that as factory it would definitely help a lot, that's what I can see here, at the beginning I thought it was like the regular way of OOP using object.freeze etc, but I realized that's just a kind of the same way, anyway, thanks for sharing, you're doing it well and I'm following you since ~3-4 years ago (I don't remember honestly) :)
I'm here because map.get(key) is returning proxies instead of the freaking item itself. How do I stop this nonsense? I want the object not something else .
Such a dope API! I've never heard of it before, so thank you very much for showcasing it
This should be the first result on TH-cam
This is a really great explanation. I like the way you started with toy examples and built them up to something practical.
I'll need to watch this again and again to understand. Nice tutorial.
I really, REALLY, did like your video. You're a awesome teacher. I would suggest you to work on more real-life examples as they show the real face and power of the functionality. I mean, the array example could've been done using the prototype on plain old ECMA. You could show us a example making an API request and changing it's response to show only data we need to get, whatever.
My like goes with you! Keep up your great work
Thanks Kyle! This is a great intro to the JS proxy and now I know how useful this is.
This is an awesome breakdown but I think I'll need to watch it a few times to fully understand it. Thanks!
Thank you Kyle, very cool Javascript API.
your videos are just too perfect.
:D Thank you!
Awesome video. Really easy to understand.
That was awesome dude. thanks
HOLY CRAP! THIS IS AMAZING.
is there any polyfill for proxy or how we can implement our own Proxy class ?
You missed a PANDA in the list of bears. Unforgivable!!!
Haha ... Great tutorial. Thanks :)
He also forgot black bears. #BlackBearsMatter
Thank you McBearison 😅😉 Really cool video
Thanks Kyle!
good job,i like it
Really useful! I'll definitely do my own proxies objects, the idea of findById is very useful because there're many cases in which I end up doing the typical way to get an object like you did but in many different places, so by having a proxy like that as factory it would definitely help a lot, that's what I can see here, at the beginning I thought it was like the regular way of OOP using object.freeze etc, but I realized that's just a kind of the same way, anyway, thanks for sharing, you're doing it well and I'm following you since ~3-4 years ago (I don't remember honestly) :)
Wow thanks for watching for so long. Much appreciated!
What code editor and theme do you use? It looks like Sublime, but I don't know this theme
The editor is atom.io/ with monokai syntax and seti ui theme.
why can we invoke deleteProperty with a simple delete keyword?
This API is used by Vue 3's reactivity :)
Big Thumbs up man. Just found what I was looking for...
construct doesn't actually trigger for me when creating this proxy
tx!!!!
its like setmetatable in lua
What's the IDE ?
Looks like atom with the "Seti" theme
I'm here because map.get(key) is returning proxies instead of the freaking item itself. How do I stop this nonsense? I want the object not something else .
been doing this for years. I call it a wrapper...
This guy doesn't know much about bears.
Your not making a clientside mongify array wrapper by any chance ;)
Ha totally not :)
Last example will make an array with 55 empty slots.... doesn't sound efficient.
nope, that doesnt happen.
Beware of the performance. You can actually see the latency of it.
your videos are just too perfect.