JavaScript Proxy

Sdílet
Vložit
  • čas přidán 25. 04. 2018
  • 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...
  • Věda a technologie

Komentáře • 41

  • @CreativeJE
    @CreativeJE Před rokem

    This should be the first result on CZcams

  • @durchschnittlich
    @durchschnittlich Před 6 lety +12

    Such a dope API! I've never heard of it before, so thank you very much for showcasing it

  • @gamenetic6426
    @gamenetic6426 Před 5 lety +6

    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

  • @iAmTheSquidThing
    @iAmTheSquidThing Před 2 lety

    This is a really great explanation. I like the way you started with toy examples and built them up to something practical.

  • @petervandylian2486
    @petervandylian2486 Před 3 lety +1

    Thanks Kyle! This is a great intro to the JS proxy and now I know how useful this is.

  • @devdash2107
    @devdash2107 Před 5 lety +2

    I'll need to watch this again and again to understand. Nice tutorial.

  • @TheAnish115
    @TheAnish115 Před 3 lety

    This is an awesome breakdown but I think I'll need to watch it a few times to fully understand it. Thanks!

  • @Cognitoman
    @Cognitoman Před 5 lety +1

    Thank you Kyle, very cool Javascript API.

  • @juliuscirwithian1565
    @juliuscirwithian1565 Před 5 lety

    Awesome video. Really easy to understand.

  • @bilaltariq50
    @bilaltariq50 Před 6 lety

    your videos are just too perfect.

  • @h0ph1p13
    @h0ph1p13 Před 4 lety +2

    You missed a PANDA in the list of bears. Unforgivable!!!
    Haha ... Great tutorial. Thanks :)

    • @Daniel_WR_Hart
      @Daniel_WR_Hart Před 3 lety

      He also forgot black bears. #BlackBearsMatter

  • @shikhar2811
    @shikhar2811 Před 2 lety

    That was awesome dude. thanks

  • @RayVillaraza
    @RayVillaraza Před 4 lety

    HOLY CRAP! THIS IS AMAZING.

  • @felipeP3277
    @felipeP3277 Před 3 lety

    Thanks Kyle!

  • @andriann-rak
    @andriann-rak Před 3 lety

    Thank you McBearison 😅😉 Really cool video

  • @VikrantKumar-ye1kw
    @VikrantKumar-ye1kw Před 5 lety +1

    is there any polyfill for proxy or how we can implement our own Proxy class ?

  • @wjames480
    @wjames480 Před 6 lety

    good job,i like it

  • @nromancarcamo
    @nromancarcamo Před 6 lety +2

    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) :)

  • @wobsoriano
    @wobsoriano Před 3 lety

    This API is used by Vue 3's reactivity :)

  • @tacticalbelyash
    @tacticalbelyash Před 6 lety

    What code editor and theme do you use? It looks like Sublime, but I don't know this theme

    • @kylerobinsonyoung
      @kylerobinsonyoung  Před 6 lety +2

      The editor is atom.io/ with monokai syntax and seti ui theme.

  • @yashvibhandik7133
    @yashvibhandik7133 Před 5 lety

    Big Thumbs up man. Just found what I was looking for...

  • @clearwavepro100
    @clearwavepro100 Před 3 lety

    tx!!!!

  • @MrMarkgyuro
    @MrMarkgyuro Před 4 lety

    why can we invoke deleteProperty with a simple delete keyword?

  • @calebprenger3928
    @calebprenger3928 Před 4 lety

    construct doesn't actually trigger for me when creating this proxy

  • @1xc548
    @1xc548 Před 3 lety

    its like setmetatable in lua

  • @mevkok
    @mevkok Před 5 lety

    What's the IDE ?

  • @whatthefunction9140
    @whatthefunction9140 Před 6 lety +5

    been doing this for years. I call it a wrapper...

  • @hateterrorists
    @hateterrorists Před 3 lety

    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 .

  • @zcizzorhandz5567
    @zcizzorhandz5567 Před 5 lety

    Beware of the performance. You can actually see the latency of it.

  • @TheJTLLee
    @TheJTLLee Před 6 lety

    Your not making a clientside mongify array wrapper by any chance ;)

  • @gregorytippett9692
    @gregorytippett9692 Před 5 lety +7

    This guy doesn't know much about bears.

  • @asafeinihovich3808
    @asafeinihovich3808 Před 4 lety

    Last example will make an array with 55 empty slots.... doesn't sound efficient.

  •  Před 6 lety +2

    your videos are just too perfect.