Immutability in JavaScript

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ก.ค. 2021
  • This video explains the difference between Mutable and Immutable in JavaScript and how this is connected to:
    - const vs let
    - primitives vs objects
    - Object freezing and sealing
    - Object chaining
    - Proxies
    - new upcoming JavaScript DataTypes
    Videos referenced during tutorial:
    Object Freeze and Seal:
    • Object seal, freeze, a...
    Shallow vs Deep copy:
    • Deep Copying vs Shallo...
    Chaining Methods:
    • Spread, Shallow Copies...

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

  • @Spunky_Tx
    @Spunky_Tx วันที่ผ่านมา

    Make a lot of sense thank you sir

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

    This is gem

  • @rajesht9702
    @rajesht9702 3 ปีที่แล้ว +2

    Thank you Mr Steve for the detailed explanation. Waiting for the next video.

  • @tochimclaren
    @tochimclaren 3 ปีที่แล้ว +2

    As usual, great tutorial. You are my visual/video documentation, reading documentation can be tricky. Thank!

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

    that makes much more sense now. Thx, amazing content as usual :)

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

    These Are the basics, very well explained and in detailed. 👍

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

    Thanks clearly explained!

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

    Thank you, amazing content and explanation as usual!
    Also wanted to add that I really benefited from your pub-sub pattern tutorial, and understanding it helped so much with learning Redux. Plus I also got asked about it in job interviews (along with immutability in JS).
    I know you have a long list of topics you want to cover, I just hope more design patterns are on it as well, just throwing it out there. 🙂
    Thanks, professor!

  • @sjshdhehbesjks
    @sjshdhehbesjks 2 หลายเดือนก่อน +1

    thank you sire

  • @ntsnamal5
    @ntsnamal5 3 ปีที่แล้ว +2

    Thanks brother really good content 👍

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

    Thank you. Your videos really help.

  • @asdadadadadasda
    @asdadadadadasda 3 ปีที่แล้ว +2

    Great Video!

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

    great and concise explanation

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

    Thank you sir.

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

    Thank you, professor, quality contest as always.
    I have one question regarding those new Data Types. Where do you get to see the proposed changes? Is there any documentation for it like we've RFCs for network protocols?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 ปีที่แล้ว +1

      One of the places you can look is here - github.com/tc39/
      I will have the Record and Tuple video out this week

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

    Great video 😊
    Also please make tutorial on angular material buttons with ripple effect with Vanilla JS

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 ปีที่แล้ว

      Sorry. I stopped making Angular videos years ago, when Angular went to version 2.
      But I do have a video on CSS ripple effect - th-cam.com/video/nHyOMw_utMs/w-d-xo.html

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

    Another great video, Steve! Thanks!
    Question: Which video did you provide a suggestion for how to isolate code to prevent conflicts? I remember a variable called APP or something. Do you remember? Thanks!

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 ปีที่แล้ว +1

      I do that in lots of videos.
      Here is one of the places I discuss it - th-cam.com/video/exiC1Qsv5mc/w-d-xo.html

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

      @@SteveGriffith-Prof3ssorSt3v3 Thank you!

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

    😊👍

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

    Thank you for your explanation, cleared a lot of things i was struggling with!
    A question tho, as primitives are just values, that we can't change. In javascript, let's say i create a let number = 5, if i change it like number = "five", would javascript create a new variable with a string primitive type variable instead and eliminate the old one?

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

    14:49 the summary of the lecture if anyone doesn't have the time.

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

    Could you please explain the concept regarding value types being immutable a bit more. Based on the explanation it looked like a type is immutable when its contents cannot be changed. However for e.g. if we have an int we can change its value from 5 to 6 or any other number. Then how come its immutable?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  2 ปีที่แล้ว

      These might help you.
      th-cam.com/video/duyshh9Fs1U/w-d-xo.html
      th-cam.com/video/eBaW3vW8FUE/w-d-xo.html

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

    a question . "use strict" for me doesn't work as you said it doesn't cause error . is it because of running codes in browser and in node it gives error or i am wrongdoing?
    tnx for all content generally🙂

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  ปีที่แล้ว +1

      use strict was something that was introduced back around ES5 when new things like const and let were being introduced. It was a way to make old JS have the same restrictions as the newer JS. Not really used much any more.

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

    Another hidden lesson - never set your microphone on your desk when creating tutorial videos. ;)