Understanding Immutability in JavaScript

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024

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

  • @jawwadalam
    @jawwadalam 8 หลายเดือนก่อน +1

    Detailed simple explanation of why immutability is important. Thank you 👍

    • @deborah_kurata
      @deborah_kurata  8 หลายเดือนก่อน +1

      So nice of you to say. Thank you for watching!

  • @RsPippen
    @RsPippen 8 หลายเดือนก่อน

    perfect timing! i was just dealing with a bug related to this topic

    • @deborah_kurata
      @deborah_kurata  8 หลายเดือนก่อน

      Great! Glad to hear it was useful!

  • @codingSparrow143
    @codingSparrow143 4 หลายเดือนก่อน

    Thank you so much!! Very clear explanation❤❤

    • @deborah_kurata
      @deborah_kurata  4 หลายเดือนก่อน +1

      Thank you. Glad it was helpful!

  • @hodasalah1663
    @hodasalah1663 8 หลายเดือนก่อน

    you are the best Thanks a lot

    • @deborah_kurata
      @deborah_kurata  8 หลายเดือนก่อน

      Thank you for watching!

  • @JJOhns-fy4tl
    @JJOhns-fy4tl 6 หลายเดือนก่อน

    so glad i found your channel. thank you for your clear explanations. one question though: when creating a new object by using the spread operator and the original object contains an array, i would copy the reference of the array, wouldn't I? So maybe I should figure out a combination of using the spread operator to treat the object as immutable and the with() method for the array. Or am i on the total wrong track?

  • @rs4267
    @rs4267 8 หลายเดือนก่อน

    As usual great job ❤

  • @SolidWorksMastery-hr4sg
    @SolidWorksMastery-hr4sg 2 หลายเดือนก่อน

    one question : i've read that dynamic arrays (which we use in javascript) create a new array in memory in case of adding new value which would exceed the length of the array , so does that mean that sometimes the address of the array change ?

    • @deborah_kurata
      @deborah_kurata  2 หลายเดือนก่อน

      This answer may be useful: stackoverflow.com/a/20323491

  • @elyoaprogrammer
    @elyoaprogrammer 8 หลายเดือนก่อน +1

    So important topic explained by @DeborahKurata!!!

  • @abdulrenishr
    @abdulrenishr 3 หลายเดือนก่อน

    Awesome explanation

  • @respostasimples
    @respostasimples 8 หลายเดือนก่อน +1

    doing god's work Kurata, thanks!

    • @deborah_kurata
      @deborah_kurata  8 หลายเดือนก่อน

      😊 Thank you for watching!

  • @ngotienthien7939
    @ngotienthien7939 8 หลายเดือนก่อน

    thank a lot, That's so useful

  • @abnow1998
    @abnow1998 8 หลายเดือนก่อน

    Hi Deborah, been following you since 2020, have watched all of your Angular courses on Plural sight, my request and I believe this is currently the hot topic: Next.js, pls make a series on this..

    • @deborah_kurata
      @deborah_kurata  8 หลายเดือนก่อน

      Thank you for the suggestion!

  • @ashutoshtiwari5222
    @ashutoshtiwari5222 8 หลายเดือนก่อน +1

    Simple yet informative.

  • @FuyadFuyad-ns6qg
    @FuyadFuyad-ns6qg 3 หลายเดือนก่อน

    very informative and well descriptive tutorial video. Hope you will give us more and more informative and well descriptive tutorials .❤

  • @karlee8608
    @karlee8608 8 หลายเดือนก่อน

    The video is very informative. You should include a visual evidence of the primitive data type being immutable. Same thing with object and array. I like how you make the connection to the memory instead of the value itself. It helps explain what is going on behind the hood in JavaScript. If you can show an updated video with actual example that would be grateful.

    • @deborah_kurata
      @deborah_kurata  8 หลายเดือนก่อน

      Thank you!
      In the description of the video, I have a link to some code that demonstrates immutability. It defines a variable of each data type (primitive, array, object) as a property of another object. It then demonstrates when the setter is called (code sees the value as changed) and when it isn't. Please see the video description for the link.

  • @ibmmsayskhiedr4220
    @ibmmsayskhiedr4220 8 หลายเดือนก่อน

    Thanks a million I think immutability now became a piece of cake Thanks @Deborah

  • @Sinan997
    @Sinan997 8 หลายเดือนก่อน

    Great video again, now i know why immutability is important. Thank you!

    • @deborah_kurata
      @deborah_kurata  8 หลายเดือนก่อน

      Glad it was helpful! Thanks!

  • @farzadbahadorifar1126
    @farzadbahadorifar1126 7 หลายเดือนก่อน

    you explain really well, thank for that.

    • @deborah_kurata
      @deborah_kurata  6 หลายเดือนก่อน

      Thanks for watching!

  • @MarcoPinheiro
    @MarcoPinheiro 8 หลายเดือนก่อน

    Bravo!!