JavaScript Proxy

แชร์
ฝัง

ความคิดเห็น • 41

  • @durchschnittlich
    @durchschnittlich 6 ปีที่แล้ว +12

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

  • @CreativeJE
    @CreativeJE ปีที่แล้ว

    This should be the first result on TH-cam

  • @iAmTheSquidThing
    @iAmTheSquidThing 2 ปีที่แล้ว

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

  • @devdash2107
    @devdash2107 5 ปีที่แล้ว +2

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

  • @gamenetic6426
    @gamenetic6426 5 ปีที่แล้ว +7

    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

  • @petervandylian2486
    @petervandylian2486 3 ปีที่แล้ว +1

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

  • @TheAnish115
    @TheAnish115 3 ปีที่แล้ว

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

  • @Cognitoman
    @Cognitoman 5 ปีที่แล้ว +1

    Thank you Kyle, very cool Javascript API.

  •  6 ปีที่แล้ว +2

    your videos are just too perfect.

  • @juliuscirwithian1565
    @juliuscirwithian1565 5 ปีที่แล้ว

    Awesome video. Really easy to understand.

  • @shikhar2811
    @shikhar2811 2 ปีที่แล้ว

    That was awesome dude. thanks

  • @RayVillaraza
    @RayVillaraza 4 ปีที่แล้ว

    HOLY CRAP! THIS IS AMAZING.

  • @VikrantKumar-ye1kw
    @VikrantKumar-ye1kw 5 ปีที่แล้ว +1

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

  • @h0ph1p13
    @h0ph1p13 4 ปีที่แล้ว +2

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

    • @Daniel_WR_Hart
      @Daniel_WR_Hart 3 ปีที่แล้ว

      He also forgot black bears. #BlackBearsMatter

  • @andriann-rak
    @andriann-rak 3 ปีที่แล้ว

    Thank you McBearison 😅😉 Really cool video

  • @felipeP3277
    @felipeP3277 3 ปีที่แล้ว

    Thanks Kyle!

  • @wjames480
    @wjames480 6 ปีที่แล้ว

    good job,i like it

  • @nromancarcamo
    @nromancarcamo 6 ปีที่แล้ว +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) :)

    • @kylerobinsonyoung
      @kylerobinsonyoung  6 ปีที่แล้ว +1

      Wow thanks for watching for so long. Much appreciated!

  • @tacticalbelyash
    @tacticalbelyash 6 ปีที่แล้ว

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

    • @kylerobinsonyoung
      @kylerobinsonyoung  6 ปีที่แล้ว +2

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

  • @MrMarkgyuro
    @MrMarkgyuro 4 ปีที่แล้ว

    why can we invoke deleteProperty with a simple delete keyword?

  • @wobsoriano
    @wobsoriano 3 ปีที่แล้ว

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

  • @yashvibhandik7133
    @yashvibhandik7133 5 ปีที่แล้ว

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

  • @calebprenger3928
    @calebprenger3928 4 ปีที่แล้ว

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

  • @clearwavepro100
    @clearwavepro100 3 ปีที่แล้ว

    tx!!!!

  • @1xc548
    @1xc548 3 ปีที่แล้ว

    its like setmetatable in lua

  • @mevkok
    @mevkok 5 ปีที่แล้ว

    What's the IDE ?

    • @BlackxesWasTaken
      @BlackxesWasTaken 5 ปีที่แล้ว

      Looks like atom with the "Seti" theme

  • @hateterrorists
    @hateterrorists 3 ปีที่แล้ว

    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 .

  • @whatthefunction9140
    @whatthefunction9140 6 ปีที่แล้ว +5

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

  • @gregorytippett9692
    @gregorytippett9692 5 ปีที่แล้ว +7

    This guy doesn't know much about bears.

  • @TheJTLLee
    @TheJTLLee 6 ปีที่แล้ว

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

  • @asafeinihovich3808
    @asafeinihovich3808 4 ปีที่แล้ว

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

  • @zcizzorhandz5567
    @zcizzorhandz5567 5 ปีที่แล้ว

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

  • @bilaltariq50
    @bilaltariq50 6 ปีที่แล้ว

    your videos are just too perfect.