Immutability Explained - Build Bulletproof Code
π Free PDF: Senior Developer Starter Kit (Checklist + 30-Day Plan) β https://monsterlessons-academy.com/newsletter_subscribers/senior_starter_kit?utm_source=youtube&utm_medium=description_link π Go from Middle to Senior Frontend in 12 Weeks β https://monsterlessons-academy.com/courses/frontend-developer-middle-to-senior-bootcamp?utm_source=youtube&utm_medium=description_link In this video you will learn the difference between references in Javascript vs primitives in Javascript. Also I will show you the difference between mutable and immutable data in Javascript and how to use immutabilite Javascript to make your code less error prone. It's really easy to change the value of your variable by accident with mutable data this is why we need a better approach using immutable Javascript. It is important to remember that you assign primitives in Javascript by value an arrays and objects by references in Javascript. π Need a video editor? Contact Ekaterina: [email protected] π Social Twitter: https://twitter.com/monster_lessons Instagram: https://www.instagram.com/monsterlessonsacademy Facebook: https://www.facebook.com/monsterlessonsacademy Linkedin: https://www.linkedin.com/company/monsterlessons-academy Tiktok: https://www.tiktok.com/@monsterlessonsacademy π References β Source code: https://github.com/monsterlessonsacademy/monsterlessonsacademy/tree/mutable-vs-immutable-data-in-javascript β Lodash website: http://lodash.com β Ramda website: https://ramdajs.com π TIMESTAMPS 0:00 Introduction 0:35 What are mutable and immutable data in Javascript 3:00 References in Javascript vs primitives in Javascript 4:07 Mutable data problem example 9:32 How to use always only immutable Javascript 10:45 Lodash and Ramda as libraries to write immutable code 11:34 Is immutable data less efficient than mutable? 12:15 Call to action This video is NOT sponsored. Some product links are affiliate links which means if you buy something I'll receive a small commission.
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.