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 .
This should be the first result on CZcams
Such a dope API! I've never heard of it before, so thank you very much for showcasing it
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
This is a really great explanation. I like the way you started with toy examples and built them up to something practical.
Thanks Kyle! This is a great intro to the JS proxy and now I know how useful this is.
I'll need to watch this again and again to understand. Nice tutorial.
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.
Awesome video. Really easy to understand.
your videos are just too perfect.
You missed a PANDA in the list of bears. Unforgivable!!!
Haha ... Great tutorial. Thanks :)
He also forgot black bears. #BlackBearsMatter
That was awesome dude. thanks
HOLY CRAP! THIS IS AMAZING.
Thanks Kyle!
Thank you McBearison 😅😉 Really cool video
is there any polyfill for proxy or how we can implement our own Proxy class ?
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!
This API is used by Vue 3's reactivity :)
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.
Big Thumbs up man. Just found what I was looking for...
tx!!!!
why can we invoke deleteProperty with a simple delete keyword?
construct doesn't actually trigger for me when creating this proxy
its like setmetatable in lua
What's the IDE ?
Looks like atom with the "Seti" theme
been doing this for years. I call it a wrapper...
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 .
Beware of the performance. You can actually see the latency of it.
Your not making a clientside mongify array wrapper by any chance ;)
Ha totally not :)
This guy doesn't know much about bears.
Last example will make an array with 55 empty slots.... doesn't sound efficient.
nope, that doesnt happen.
your videos are just too perfect.
:D Thank you!