Immutability in JavaScript

Sdílet
Vložit
  • čas přidán 24. 07. 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...

Komentáře • 30

  • @rajesht9702
    @rajesht9702 Před 2 lety +2

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

  • @tochimclaren
    @tochimclaren Před 2 lety +2

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

  • @nevenkosovec
    @nevenkosovec Před 2 lety

    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!

  • @oah8465
    @oah8465 Před 2 lety +1

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

  • @Sarmadfarhankhan
    @Sarmadfarhankhan Před 2 lety

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

  • @gauravkalita143
    @gauravkalita143 Před 3 měsíci

    This is gem

  • @abhim6380
    @abhim6380 Před 2 lety

    Thank you. Your videos really help.

  • @ntsnamal5
    @ntsnamal5 Před 2 lety +2

    Thanks brother really good content 👍

  • @qntnm
    @qntnm Před 2 lety +2

    Great Video!

  • @javascriptlearning5425

    Thanks clearly explained!

  • @sjshdhehbesjks
    @sjshdhehbesjks Před měsícem +1

    thank you sire

  • @allezzthepunk
    @allezzthepunk Před 2 lety

    great and concise explanation

  • @nwobodogeorge5370
    @nwobodogeorge5370 Před 2 lety

    Thank you sir.

  • @persiansayed
    @persiansayed Před 2 lety

    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  Před 2 lety +1

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

  • @thatsisjustcrazy8187
    @thatsisjustcrazy8187 Před 2 lety

    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!

  • @prince5922
    @prince5922 Před 2 lety

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

  • @martyrd0m
    @martyrd0m Před 2 lety

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

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  Před 2 lety

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

  • @ivaldirbatalha5436
    @ivaldirbatalha5436 Před rokem

    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?

  • @hammadahmad5383
    @hammadahmad5383 Před 2 lety

    😊👍

  • @benralph2574
    @benralph2574 Před 2 lety

    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?

  • @hamidRaven13
    @hamidRaven13 Před rokem

    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  Před rokem +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 Před rokem

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